I am getting an error when reading file with ajax, it gets data successfully but firefox throws an error as well:
XML Parsing Error: syntax error
Location:
http://localhost/xampp/gwp/subtitles/sintel-de.vtt
Line Number 1, Column 1:
I tried adding dataType: "text", but it doesnt help.
subtitle.vtt file:
WEBVTT
0
00:00:00.000 --> 00:00:12.000
This is a subtitle.
1
00:00:18.700 --> 00:00:21.500
This blade has a dark past.
This is an ajax call:
$.ajax({
url: url//url to subtitle.vtt
dataType: "text"
}).done(function( data ) {
}).fail(function(jqXHR, textStatus, errorThrown) {
});
Error only happens in firefox.