mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 16:17:59 +01:00
Fix: The instances of Document have not "localName" property.
This commit is contained in:
@@ -410,7 +410,7 @@ const util = { //{{{
|
|||||||
[XHTML, 'html'],
|
[XHTML, 'html'],
|
||||||
[XUL, 'xul'],
|
[XUL, 'xul'],
|
||||||
]);
|
]);
|
||||||
if (object instanceof Node) {
|
if (object instanceof Node && !(object instanceof Document)) {
|
||||||
let elem = object;
|
let elem = object;
|
||||||
if (elem.nodeType == elem.TEXT_NODE)
|
if (elem.nodeType == elem.TEXT_NODE)
|
||||||
return elem.data;
|
return elem.data;
|
||||||
|
|||||||
Reference in New Issue
Block a user