Skip to content

Commit

Permalink
fixing importNode
Browse files Browse the repository at this point in the history
  • Loading branch information
yaronn committed May 24, 2012
1 parent 36a72bd commit b58b8c1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dom.js
Expand Up @@ -908,11 +908,11 @@ function importNode(doc,node,deep){
case ELEMENT_NODE:
node2 = node.cloneNode(false);
node2.ownerDocument = doc;
var attrs = node2.attributes;
var len = attrs.length;
for(var i=0;i<len;i++){
node2.setAttributeNodeNS(importNode(doc,attrs.item(i),deep));
}
//var attrs = node2.attributes;
//var len = attrs.length;
//for(var i=0;i<len;i++){
//node2.setAttributeNodeNS(importNode(doc,attrs.item(i),deep));
//}
case DOCUMENT_FRAGMENT_NODE:
break;
case ATTRIBUTE_NODE:
Expand Down

0 comments on commit b58b8c1

Please sign in to comment.