Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

xmldom

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xmldom - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

3

dom.js

@@ -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,'')

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc