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"], |
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
71058