Skip to content

Commit

Permalink
force attribute value to string before xml escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
smparkes committed Nov 10, 2009
1 parent 2d151d6 commit afe42e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dom/attr.js
Expand Up @@ -43,7 +43,7 @@ __extend__(DOMAttr.prototype, {
},
get xml(){
if(this.nodeValue)
return this.nodeName + '="' + __escapeXML__(this.nodeValue) + '" ';
return this.nodeName + '="' + __escapeXML__(this.nodeValue+"") + '" ';
else
return '';
},
Expand Down

0 comments on commit afe42e3

Please sign in to comment.