diff --git a/common/content/hints.js b/common/content/hints.js index bfc531b1..8a309f4d 100644 --- a/common/content/hints.js +++ b/common/content/hints.js @@ -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 }); }