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