1
0
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:
Kris Maglione
2011-09-14 14:30:08 -04:00
parent 89482c5c23
commit 938fc1648a

View File

@@ -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);