Commit 62b92199 by Иван Кубота

fixes for server

parent 30bdb190
...@@ -770,7 +770,7 @@ NS.apply = function(a,b) { ...@@ -770,7 +770,7 @@ NS.apply = function(a,b) {
return el; return el;
}, },
createElementNS: function( namespaceURI, qualifiedName ){ createElementNS: function( namespaceURI, qualifiedName ){
var el = doc.createElement(namespaceURI, qualifiedName); var el = doc.createElementNS(namespaceURI, qualifiedName);
el.___id = cid++; el.___id = cid++;
return el; return el;
} }
...@@ -782,14 +782,13 @@ NS.apply = function(a,b) { ...@@ -782,14 +782,13 @@ NS.apply = function(a,b) {
var sequence = function(el, out){ var sequence = function(el, out){
out = out || []; out = out || [];
if( el.nodeType === 3){ // textNode if( el.nodeType === 3){ // textNode
out.push(el.cid)//el.cid out.push(el.___id)//el.cid
}else{ }else{
out.push(el.cid)
var children = el.childNodes; var children = el.childNodes;
for(var i = 0, _i = children.length; i < _i; i++){ for(var i = 0, _i = children.length; i < _i; i++){
rec(children[i], out); sequence(children[i], out);
} }
out.push(el.___id)
} }
return out; return out;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment