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