From b0509535308be09277ba5973fcf79f7d9142cf8a Mon Sep 17 00:00:00 2001 From: suVene Date: Sun, 14 Jun 2009 03:43:41 +0000 Subject: 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 --- _libly.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 _libly.js (limited to '_libly.js') diff --git a/_libly.js b/_libly.js old mode 100644 new mode 100755 index 6e92027..7144501 --- 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) -- cgit v1.2.3