mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-16 23:12:29 +02:00
Fix: The instances of Document have not "localName" property.
This commit is contained in:
1 parent
2f753b6d27
commit
bfdd83547c
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user