summaryrefslogtreecommitdiff
path: root/common/content/util.js
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2009-02-09 16:18:10 -0500
committerKris Maglione <maglione.k@gmail.com>2009-02-09 16:18:24 -0500
commitc9c708f636e6f25a54c301c85911c420f81a9dba (patch)
tree7f5db3f72a8b679d2694aec7be85973ffbadbb20 /common/content/util.js
parentc5c5e90f0e31bc222adec24a1eb85c18fdf8c89d (diff)
downloadpentadactyl-c9c708f636e6f25a54c301c85911c420f81a9dba.tar.gz
Fix some bugs, generally.
Diffstat (limited to 'common/content/util.js')
-rw-r--r--common/content/util.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/content/util.js b/common/content/util.js
index 090de789..5409d0c9 100644
--- a/common/content/util.js
+++ b/common/content/util.js
@@ -672,6 +672,13 @@ const util = { //{{{
xmlToDom: function xmlToDom(node, doc, nodes)
{
XML.prettyPrinting = false;
+ if (node.length() != 1)
+ {
+ let domnode = doc.createDocumentFragment();
+ for each (let child in node)
+ domnode.appendChild(arguments.callee(child, doc, nodes));
+ return domnode;
+ }
switch (node.nodeKind())
{
case "text":