1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 07:48:00 +01:00

Deal with documents that refuse to apply our bindings when generating hints.

This commit is contained in:
Kris Maglione
2011-01-17 15:25:41 -05:00
parent 45860b0d58
commit a433478764

View File

@@ -298,7 +298,7 @@ var Hints = Module("hints", {
let fragment = util.xmlToDom(<div highlight="hints"/>, doc);
body.appendChild(fragment);
util.computedStyle(fragment).height; // Force application of binding.
let container = doc.getAnonymousElementByAttribute(fragment, "anonid", "hints");
let container = doc.getAnonymousElementByAttribute(fragment, "anonid", "hints") || fragment;
let baseNodeAbsolute = util.xmlToDom(<span highlight="Hint" style="display: none"/>, doc);