aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)