diff options
author | teramako | 2013-01-12 00:42:19 +0900 |
---|---|---|
committer | teramako | 2013-01-12 00:42:19 +0900 |
commit | 4787e768b3093787499cca362ff98ddcb62acf61 (patch) | |
tree | 21198d7b7affd0a6b9edec8e4e2569d8bd4df002 | |
parent | 84986aecf969c09d66df768c3669b472a1c49212 (diff) | |
download | vimperator-plugins-4787e768b3093787499cca362ff98ddcb62acf61.tar.bz2 |
temporary fix. For vimperator 3.6+
-rw-r--r-- | _libly.js | 20 |
1 files changed, 4 insertions, 16 deletions
@@ -6,6 +6,7 @@ http://www.opensource.jp/licenses/mit-license.html }}} END LICENSE BLOCK ***/ // PLUGIN_INFO//{{{ +/* var PLUGIN_INFO = <VimperatorPlugin> <name>libly(filename _libly.js)</name> @@ -130,7 +131,7 @@ Request(url, headers, options): 以下の値はデフォルトで設定される('Content-type'はPOST時のみ) >|| { - 'Accept': 'text/javascript, application/javascript, text/html, application/xhtml+xml, application/xml, text/xml, */*;q=0.1', + 'Accept': 'text/javascript, application/javascript, text/html, application/xhtml+xml, application/xml, text/xml, * /*;q=0.1', 'Content-type': 'application/x-www-form-urlencoded; charset=' + options.encodingの値 } ||< @@ -190,6 +191,7 @@ clearCache: ]]></detail> </VimperatorPlugin>; +*/ //}}} //if (!liberator.plugins.libly) { @@ -463,21 +465,7 @@ libly.$U = {//{{{ }, xmlToDom: function xmlToDom(node, doc, nodes) { - XML.prettyPrinting = false; - switch (node.nodeKind()) - { - case "text": - return doc.createTextNode(node); - case "element": - let domnode = doc.createElementNS(node.namespace(), node.localName()); - for each (let attr in node.@*) - domnode.setAttributeNS(attr.name() == "highlight" ? NS.uri : attr.namespace(), attr.name(), String(attr)); - for each (let child in node.*) - domnode.appendChild(arguments.callee(child, doc, nodes)); - if (nodes && node.@key) - nodes[node.@key] = domnode; - return domnode; - } + return util.xmlToDom(node, doc, nodes); }, getElementPosition: function(elem) { var offsetTrail = elem; |