Since the Summer '18 patch the jQuery parseXML() is now throwing a "Invalid XML: .." error message. Sample code:

    var xml = "<node>test</node>";
    var xmlDoc = $.parseXML(xml);

Console output:

Invalid XML: <node>test</node>

The jQuery version we are using is v2.2.4 which I believe is the most Locker Service compatible version.


LockerService team has been notified of this issue in the Summer 18 release. We have fixed the bug in a patch release. The fix is scheduled to rollout to production starting 5/9/2018 and may be take a couple of days to reach all instances.

The root cause was a regression in support for DOMParser.

The bug record is W-4954203, incase you want to reference it in a customer case etc.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.