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

Fix hints in documents with SVG images, and other corner cases.

This commit is contained in:
Kris Maglione
2008-11-27 05:43:33 +00:00
parent 5d8992d761
commit b3009797da

View File

@@ -156,8 +156,11 @@ function Hints() //{{{
pageHints.push([elem, text, span, null, elem.style.backgroundColor, elem.style.color]);
}
doc.body.appendChild(fragment);
docs.push({ doc: doc, start: start, end: pageHints.length - 1 });
if (doc.body)
{
doc.body.appendChild(fragment);
docs.push({ doc: doc, start: start, end: pageHints.length - 1 });
}
// also generate hints for frames
Array.forEach(win.frames, function (frame) { generate(frame); });