mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-03 19:34:11 +01:00
Fix dom.js bug for nodes with a length property.
This commit is contained in:
@@ -133,6 +133,8 @@ var DOM = Class("DOM", {
|
||||
function munge(val) {
|
||||
if (val instanceof Ci.nsIDOMRange)
|
||||
return val.extractContents();
|
||||
if (val instanceof Ci.nsIDOMNode)
|
||||
return val;
|
||||
|
||||
if (typeof val == "xml")
|
||||
val = dom.constructor(val, dom.document);
|
||||
|
||||
Reference in New Issue
Block a user