aboutsummaryrefslogtreecommitdiffstats
path: root/_libly.js
diff options
context:
space:
mode:
authorsuVene2009-06-14 03:43:41 +0000
committersuVene2009-06-14 03:43:41 +0000
commitb0509535308be09277ba5973fcf79f7d9142cf8a (patch)
tree8ba24b805e4660bbef9b74c3eeb77312adca6dbc /_libly.js
parent371583a13f73fbf3e647b2f12b831f72beca55ee (diff)
downloadvimperator-plugins-b0509535308be09277ba5973fcf79f7d9142cf8a.tar.bz2
xmlSerialize時、タグ名のみ小文字化。
問題ありそうなら revert の方向で。 - multi_requester.js の結果バッファ内のURLが小文字になる - 永遠に未完成 http://d.hatena.ne.jp/thinca/20090515/1242326884 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@33963 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to '_libly.js')
-rwxr-xr-x[-rw-r--r--]_libly.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/_libly.js b/_libly.js
index 6e92027..7144501 100644..100755
--- a/_libly.js
+++ b/_libly.js
@@ -390,7 +390,7 @@ libly.$U = {//{{{
try {
return (new XMLSerializer()).serializeToString(xml)
.replace(/<!--(?:[^-]|-(?!->))*-->/g, '')
- .replace(/<[^>]+>/g, function(all) all.toLowerCase());
+ .replace(/<\s*\/?\s*\w+/g, function(all) all.toLowerCase());
} catch (e) { return '' }
},
xmlToDom: function xmlToDom(node, doc, nodes)