1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 16:57:59 +01:00

Fix: The instances of Document have not "localName" property.

This commit is contained in:
anekos
2009-04-24 19:50:21 +09:00
parent 2f753b6d27
commit bfdd83547c

View File

@@ -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;