mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
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:
parent
94ca66f528
commit
2ffc921163
1 changed files with 1 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue