mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 21:28:00 +01:00
Fix: The instances of Document have not "localName" property.
This commit is contained in:
@@ -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