1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-11 14:35:48 +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

@@ -50,7 +50,8 @@ const Template = Module("Template", {
bookmarkDescription: function (item, text)
<>
<a href={item.item.url} highlight="URL">{text || ""}</a>&#xa0;
<a xmlns:dactyl={NS} identifier={item.id} dactyl:command={item.command}
href={item.item.url} highlight="URL">{text || ""}</a>&#xa0;
{
!(item.extra && item.extra.length) ? "" :
<span class="extra-info">

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;