mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-04 13:25:45 +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) {
|
function munge(val) {
|
||||||
if (val instanceof Ci.nsIDOMRange)
|
if (val instanceof Ci.nsIDOMRange)
|
||||||
return val.extractContents();
|
return val.extractContents();
|
||||||
|
if (val instanceof Ci.nsIDOMNode)
|
||||||
|
return val;
|
||||||
|
|
||||||
if (typeof val == "xml")
|
if (typeof val == "xml")
|
||||||
val = dom.constructor(val, dom.document);
|
val = dom.constructor(val, dom.document);
|
||||||
|
|||||||
Reference in New Issue
Block a user