Socket
Socket
Sign inDemoInstall

xmldom

Package Overview
Dependencies
Maintainers
3
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.16 to 0.1.17

LICENSE

10

dom-parser.js
function DOMParser(options){
this.options =
options != true && //To the version (0.1.12) compatible
options ||{locator:{}};
this.options = options ||{locator:{}};
}
DOMParser.prototype.parseFromString = function(source,mimeType){
DOMParser.prototype.parseFromString = function(source,mimeType){
var options = this.options;
var sax = new XMLReader();
var options = this.options;
var domBuilder = options.domBuilder || new DOMHandler();//contentHandler and LexicalHandler
var errorHandler = options.errorHandler;
var locator = options.locator;
var defaultNSMap = {};
var defaultNSMap = options.xmlns||{};
var entityMap = {'lt':'<','gt':'>','amp':'&','quot':'"','apos':"'"}

@@ -15,0 +13,0 @@ if(locator){

10

dom.js

@@ -995,7 +995,7 @@ /*

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:

@@ -1002,0 +1002,0 @@ break;

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

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

"bugs": {"email": "jindw@xidea.org","url": "http://github.com/jindw/xmldom/issues"},
"licenses": [{"type": "LGPL","url": "http://www.gnu.org/licenses/lgpl.html"}]
"licenses": [{"type": "LGPL","url": "http://www.gnu.org/licenses/lgpl.html","MIT":"http://opensource.org/licenses/MIT"}]
}

@@ -22,2 +22,3 @@ //[4] NameStartChar ::= ":" | [A-Z] | "_" | [a-z] | [#xC0-#xD6] | [#xD8-#xF6] | [#xF8-#x2FF] | [#x370-#x37D] | [#x37F-#x1FFF] | [#x200C-#x200D] | [#x2070-#x218F] | [#x2C00-#x2FEF] | [#x3001-#xD7FF] | [#xF900-#xFDCF] | [#xFDF0-#xFFFD] | [#x10000-#xEFFFF]

function XMLReader(){
}

@@ -355,3 +356,5 @@

localNSMap = {}
//console.log(currentNSMap,0)
_copy(currentNSMap,currentNSMap={})
//console.log(currentNSMap,1)
}

@@ -372,2 +375,4 @@ currentNSMap[nsPrefix] = localNSMap[nsPrefix] = value;

a.uri = currentNSMap[prefix]
//{console.log('###'+a.qName,domBuilder.locator.systemId+'',currentNSMap,a.uri)}
}

@@ -565,4 +570,1 @@ }

if(typeof require == 'function'){
exports.XMLReader=XMLReader;
}
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