Skip to content

Commit

Permalink
Merge pull request #89 from raphj/patch-1
Browse files Browse the repository at this point in the history
convert attribute's value to string in setAttributeNS
thanks
  • Loading branch information
jindw committed Aug 24, 2014
2 parents ba14b0f + 73aebb7 commit 12a587c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ Element.prototype = {
},
setAttributeNS : function(namespaceURI, qualifiedName, value){
var attr = this.ownerDocument.createAttributeNS(namespaceURI, qualifiedName);
attr.value = attr.nodeValue = value;
attr.value = attr.nodeValue = "" + value;
this.setAttributeNode(attr)
},
getAttributeNodeNS : function(namespaceURI, localName){
Expand Down

0 comments on commit 12a587c

Please sign in to comment.