mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Add getAttributeNS to domstubs for SVG example
The closePath method in src/display/svg.js relies on this.
This commit is contained in:
parent
8e9b4b5ff2
commit
4f22ba54bf
1 changed files with 4 additions and 0 deletions
|
@ -77,6 +77,10 @@ function DOMElement(name) {
|
||||||
|
|
||||||
DOMElement.prototype = {
|
DOMElement.prototype = {
|
||||||
|
|
||||||
|
getAttributeNS: function DOMElement_getAttributeNS(NS, name) {
|
||||||
|
return name in this.attributes ? this.attributes[name] : null;
|
||||||
|
},
|
||||||
|
|
||||||
setAttributeNS: function DOMElement_setAttributeNS(NS, name, value) {
|
setAttributeNS: function DOMElement_setAttributeNS(NS, name, value) {
|
||||||
value = value || '';
|
value = value || '';
|
||||||
value = xmlEncode(value);
|
value = xmlEncode(value);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue