1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-30 16:15:47 +01:00

Fix links in :ls and remove some old cruft as a result.

This commit is contained in:
Kris Maglione
2010-09-27 17:28:45 -04:00
parent e238c1d361
commit 53b83e378a
8 changed files with 24 additions and 18 deletions

View File

@@ -811,16 +811,16 @@ const Util = Module("Util", {
return doc.createTextNode(String(node));
case "element":
let domnode = doc.createElementNS(node.namespace(), node.localName());
for each (let attr in node.@*)
for each (let attr in node.@*::*)
if (attr.name() != "highlight")
domnode.setAttributeNS(attr.namespace(), attr.name(), String(attr));
domnode.setAttributeNS(attr.namespace(), attr.localName(), String(attr));
else {
domnode.setAttributeNS(NS.uri, "highlight", String(attr));
for each (let h in String.split(attr, " "))
highlight.loaded[h] = true;
}
for each (let child in node.*)
for each (let child in node.*::*)
domnode.appendChild(xmlToDom(child, doc, nodes));
if (nodes && node.@key)
nodes[node.@key] = domnode;