Merge pull request #8543 from Rob--W/svg-domstubs-closePath

Add getAttributeNS to domstubs for SVG example
This commit is contained in:
Yury Delendik 2017-06-19 09:58:18 -05:00 committed by GitHub
commit df4782dab7

View File

@ -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);