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

Fix hints on help pages. Closes issue #141.

Update issue #141.
It looks like we're actually quite a bit better at figuring out
element box data than Firebug is. Aside from actually mispositioning
the layout box, Firebug actually chokes on our pages and can't
manage to remove the layout guides once it's inserted them. Score
one for our hint system, I guess.
This commit is contained in:
Kris Maglione
2009-11-07 15:40:19 -05:00
parent 18d716c4af
commit 46b7a29fb7

View File

@@ -325,9 +325,10 @@ function Hints() //{{{
pageHints.push([elem, text, span, null, elem.style.backgroundColor, elem.style.color, showText]);
}
if (doc.body)
let body = doc.body || util.evaluateXPath(["body"], doc).snapshotItem(0);
if (body)
{
doc.body.appendChild(fragment);
body.appendChild(fragment);
docs.push({ doc: doc, start: start, end: pageHints.length - 1 });
}