mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 16:47:58 +01:00
Fix some bugs, generally.
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user