mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 21:28:00 +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:
@@ -325,9 +325,10 @@ function Hints() //{{{
|
|||||||
pageHints.push([elem, text, span, null, elem.style.backgroundColor, elem.style.color, showText]);
|
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 });
|
docs.push({ doc: doc, start: start, end: pageHints.length - 1 });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user