Comparing version 0.1.16 to 0.1.17
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; | ||
} |
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
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
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
1310671
36
80
2701