mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #8543 from Rob--W/svg-domstubs-closePath
Add getAttributeNS to domstubs for SVG example
This commit is contained in:
commit
df4782dab7
1 changed files with 4 additions and 0 deletions
|
@ -77,6 +77,10 @@ function DOMElement(name) {
|
|||
|
||||
DOMElement.prototype = {
|
||||
|
||||
getAttributeNS: function DOMElement_getAttributeNS(NS, name) {
|
||||
return name in this.attributes ? this.attributes[name] : null;
|
||||
},
|
||||
|
||||
setAttributeNS: function DOMElement_setAttributeNS(NS, name, value) {
|
||||
value = value || '';
|
||||
value = xmlEncode(value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue