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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user