Stop encoding the value in the DOMElement.setAttribute method (issue 8558)

This patch is an attempt at closing an old, and seemingly trivial, issue and the SVG-files created by the `pdf2svg.js` examples still appear to work just fine when opened in browsers (tested with Firefox Nightly and Google Chrome Beta).
This commit is contained in:
Jonas Jenwald 2021-06-20 11:55:24 +02:00
parent 94ca66f528
commit 2ffc921163

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) {