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

xmldom

Package Overview
Dependencies
Maintainers
5
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.24 to 0.1.25

14

dom.js

@@ -831,6 +831,3 @@ /*

appendChild:function(newChild){
//if(!(newChild instanceof CharacterData)){
throw new Error(ExceptionMessage[3])
//}
return Node.prototype.appendChild.apply(this,arguments)
throw new Error(ExceptionMessage[HIERARCHY_REQUEST_ERR])
},

@@ -943,3 +940,4 @@ deleteData: function(offset, count) {

function needNamespaceDefine(node,isHTML, visibleNamespaces) {
var prefix = node.prefix,uri = node.namespaceURI;
var prefix = node.prefix||'';
var uri = node.namespaceURI;
if (!prefix && !uri){

@@ -1010,3 +1008,4 @@ return false;

if (needNamespaceDefine(attr,isHTML, visibleNamespaces)) {
buf.push(attr.prefix ? ' xmlns:' + attr.prefix : " xmlns", "='" , attr.namespaceURI , "'");
var ns = attr.prefix ? ' xmlns:' + attr.prefix : " xmlns";
buf.push( "='" , attr.namespaceURI , "'");
visibleNamespaces.push({ prefix: attr.prefix, namespace: attr.namespaceURI });

@@ -1018,3 +1017,4 @@ }

if (needNamespaceDefine(node,isHTML, visibleNamespaces)) {
buf.push(node.prefix ? ' xmlns:' + node.prefix : " xmlns", "='" , node.namespaceURI , "'");
var ns = node.prefix ? ' xmlns:' + node.prefix : " xmlns";
buf.push(ns, "='" , node.namespaceURI , "'");
visibleNamespaces.push({ prefix: node.prefix, namespace: node.namespaceURI });

@@ -1021,0 +1021,0 @@ }

{
"name": "xmldom",
"version": "0.1.24",
"version": "0.1.25",
"description": "A W3C Standard XML DOM(Level2 CORE) implementation and parser(DOMParser/XMLSerializer).",

@@ -5,0 +5,0 @@ "keywords": ["w3c","dom","xml","parser","javascript","DOMParser","XMLSerializer"],

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