From a43347876457eb33d09a367d8b7fb815dd07e6e4 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Mon, 17 Jan 2011 15:25:41 -0500 Subject: [PATCH] Deal with documents that refuse to apply our bindings when generating hints. --- common/content/hints.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/content/hints.js b/common/content/hints.js index a6c32e9a..4f19bafc 100644 --- a/common/content/hints.js +++ b/common/content/hints.js @@ -298,7 +298,7 @@ var Hints = Module("hints", { let fragment = util.xmlToDom(
, 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(, doc);