1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-04 00:45:47 +01:00

Add cheap HTML prettifier.

This commit is contained in:
Kris Maglione
2012-12-16 19:21:33 -08:00
parent fa204e3b96
commit 1aaf3f75aa
4 changed files with 184 additions and 34 deletions

View File

@@ -279,12 +279,12 @@ var Overlay = Module("Overlay", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReferen
name = attr, val = attrs[attr];
savedAttrs.push([elem, ns, name, getAttr(elem, ns, name), val]);
if (name === "highlight")
if (ns == "xmlns")
;
else if (name === "highlight")
highlight.highlightNode(elem, val);
else if (ns)
elem.setAttributeNS(ns, name, val);
else
elem.setAttribute(name, val);
elem.setAttributeNS(ns || "", name, val);
}
}
}