aboutsummaryrefslogtreecommitdiffstats
path: root/_libly.js
diff options
context:
space:
mode:
authorsuVene2008-12-08 18:04:17 +0000
committersuVene2008-12-08 18:04:17 +0000
commit4012d388f4e4698ac13e30f0d8d3c310cdfe55d5 (patch)
treea5759baaed32f98fefc96af30d3b930d4675e9e8 /_libly.js
parenta9eaeea1f3d7fdff871a94801d7b278b5def26ba (diff)
downloadvimperator-plugins-4012d388f4e4698ac13e30f0d8d3c310cdfe55d5.tar.bz2
*SubjectHttp定義.
*registerするときに下位クラスから基底クラスを指定するように変更. *notifier/observer/subject の PLUGIN_INFO対応 @see http://coderepos.org/share/browser/lang/javascript/vimperator-plugins/trunk/pluginManager.js *ほか. git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@26152 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to '_libly.js')
-rw-r--r--_libly.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/_libly.js b/_libly.js
index e9c6fa6..8644a62 100644
--- a/_libly.js
+++ b/_libly.js
@@ -5,7 +5,7 @@ var PLUGIN_INFO =
<description>vimperator plugins library?</description>
<description lang="ja">適当なライブラリっぽいものたち。</description>
<author mail="suvene@zeromemory.info" homepage="http://zeromemory.sblo.jp/">suVene</author>
- <version>0.1.1</version>
+ <version>0.1.2</version>
<minVersion>1.2</minVersion>
<maxVersion>2.0pre</maxVersion>
<detail><![CDATA[
@@ -150,6 +150,14 @@ lib.$U = {//{{{
}
}
},
+ xmlSerialize: function(xml) {
+ try {
+ return (new XMLSerializer()).serializeToString(xml)
+ .replace(/<[^>]+>/g, function(all) all.toLowerCase())
+ .replace(/<!--(?:[^-]|-(?!->))*-->/g, ''); // actually
+ //.replace(/<!--(?:[^-]|-(?!-))*-->/g, ''); // strictly
+ } catch (e) { return '' }
+ }
};
//}}}