What steps will reproduce the problem?
1. Try to load a .properties file from the jQuery.i18n.properties constructor
What is the expected output? What do you see instead?
The expected result is the loading and parsing of the file. However, a "not
well-formed" error is thrown and the file is not parsed
What version of the product are you using? On what operating system?
The erros is thrown in Firefox 20.0.1 (I found similar reports in earlier
versions). I'm using the 1.0.9 version of the script.
Please provide any additional information below.
I fixed the problem by adding the following option to the AJAX call mimeType:
"text/plain" This tells the script not to attempt to parse the file as a JSON
file, so the error is not thrown and the script works as expected. This item
was added in jQuery version 1.5.1 to allow overriding of the XHR mime type.
Attached is the modified JS file (only added the item in line 248).
Original issue reported on code.google.com by imelg...@gmail.com on 23 Apr 2013 at 11:15
Original issue reported on code.google.com by
imelg...@gmail.com
on 23 Apr 2013 at 11:15Attachments: