Merge pull request #13590 from Snuffleupagus/issue-8558

Stop encoding the value in the `DOMElement.setAttribute` method (issue 8558)
This commit is contained in:
Tim van der Meij 2021-06-20 12:27:13 +02:00 committed by GitHub
commit adafb2c82a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,9 +93,7 @@ DOMElement.prototype = {
},
setAttribute: function DOMElement_setAttribute(name, value) {
value = value || "";
value = xmlEncode(value);
this.attributes[name] = value;
this.attributes[name] = value || "";
},
setAttributeNS: function DOMElement_setAttributeNS(NS, name, value) {