Permalink
Browse files

fixing importNode

  • Loading branch information...
yaronn committed May 24, 2012
1 parent 36a72bd commit b58b8c14c86bb58fd3805233a520541832b32869
Showing with 5 additions and 5 deletions.
  1. +5 −5 dom.js
View
10 dom.js
@@ -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:

0 comments on commit b58b8c1

Please sign in to comment.