More Namespace fun
I don't know why they want to mess with this, but it's clearly way more complicated than any benefit I can see it yielding.
This commit is contained in:
parent
2e16458c44
commit
2151c8d86b
|
@ -1523,15 +1523,16 @@ function BatchCommand(text) {
|
|||
|
||||
// map various namespaces to our fixed namespace prefixes
|
||||
// (the default xmlns attribute itself does not get a prefix)
|
||||
if (nsMap[attr.namespaceURI] != "xmlns"|| attr.localName != "xlink") {
|
||||
if(attr.namespaceURI && nsMap[attr.namespaceURI] && nsMap[attr.namespaceURI] != "xmlns") {
|
||||
out.push(nsMap[attr.namespaceURI]+':');
|
||||
}
|
||||
|
||||
out.push(attr.localName); out.push("=\"");
|
||||
out.push(attrVal); out.push("\"");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (elem.hasChildNodes()) {
|
||||
out.push(">");
|
||||
|
|
Loading…
Reference in a new issue