From bfdd83547c881e7350e997acdfd9f3d3a6b8b64f Mon Sep 17 00:00:00 2001 From: anekos Date: Fri, 24 Apr 2009 19:50:21 +0900 Subject: [PATCH] Fix: The instances of Document have not "localName" property. --- common/content/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/content/util.js b/common/content/util.js index 80fc9cf8..b6511afb 100644 --- a/common/content/util.js +++ b/common/content/util.js @@ -410,7 +410,7 @@ const util = { //{{{ [XHTML, 'html'], [XUL, 'xul'], ]); - if (object instanceof Node) { + if (object instanceof Node && !(object instanceof Document)) { let elem = object; if (elem.nodeType == elem.TEXT_NODE) return elem.data;