You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Latest versions of Firefox look like they need the XMLHttpRequest response type to be explicitly defined (in this case I think it should be set to "text"), otherwise, it'll think the response is XML and try to parse it which of course its not, twig.js is just pulling in text files to parse.
This causes a number of XML parsing errors whenever a Twig template get called with ajax.
Sample code
Twig.twig({
id: "test",
href: "/example.twig",
async: true
});
var out = Twig.twig({ ref: "test"}).render({ });
Does the render function also send XMLHttpRequests ? It looks it does which is done synchronously which is deprecated and cannot have an explicit response type.
Chrome appears to be fine
Tested on Firefox 76.0.1 on MacOS & Firefox ESR Debian 10
The text was updated successfully, but these errors were encountered:
Latest versions of Firefox look like they need the XMLHttpRequest response type to be explicitly defined (in this case I think it should be set to "text"), otherwise, it'll think the response is XML and try to parse it which of course its not, twig.js is just pulling in text files to parse.
This causes a number of XML parsing errors whenever a Twig template get called with ajax.
Sample code
Does the render function also send XMLHttpRequests ? It looks it does which is done synchronously which is deprecated and cannot have an explicit response type.
Chrome appears to be fine
Tested on Firefox 76.0.1 on MacOS & Firefox ESR Debian 10
The text was updated successfully, but these errors were encountered: