Comparing version 0.1.6 to 0.1.7
@@ -117,2 +117,3 @@ /* | ||
this._refresh = refresh | ||
_updateLiveList(this); | ||
} | ||
@@ -445,3 +446,3 @@ function _updateLiveList(list){ | ||
if(newChild){ | ||
cs[cs.length++] = child; | ||
cs[cs.length++] = newChild; | ||
}else{ | ||
@@ -448,0 +449,0 @@ //console.log(1) |
{ | ||
"name": "xmldom", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "A W3C Standard based DOMParser and XMLSerializer (DOM Level2 CORE). ", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -7,2 +7,4 @@ var wows = require('vows'); | ||
'getElementsByTagName': function () { | ||
var dom = new DOMParser().parseFromString('<xml xmlns="http://test.com" xmlns:t="http://test.com" xmlns:t2="http://test2.com">' + | ||
@@ -25,2 +27,9 @@ '<t:test/><test/><t2:test/>'+ | ||
var feed = new DOMParser().parseFromString('<feed><entry>foo</entry></feed>'); | ||
var entries = feed.documentElement.getElementsByTagName('entry'); | ||
console.log(entries[0].nodeName); | ||
console.log(feed.documentElement.childNodes.item(0).nodeName); | ||
}, | ||
@@ -27,0 +36,0 @@ 'getElementsByTagNameNS': function () { |
@@ -27,2 +27,4 @@ var XMLSerializer = require('xmldom').XMLSerializer; | ||
var xmldomresult = new XMLSerializer().serializeToString(doc); | ||
var xmldomresult2 = new XMLSerializer().serializeToString(doc.cloneNode(true)); | ||
assert.equal(xmldomresult,xmldomresult2); | ||
xmldomresult = xmldomresult.replace(/^<\?.*?\?>\s*|<!\[CDATA\[\]\]>/g,'') | ||
@@ -29,0 +31,0 @@ domjsresult = domjsresult.replace(/^<\?.*?\?>\s*|<!\[CDATA\[\]\]>/g,'') |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1287571
2343