]> source.dussan.org Git - jquery.git/commitdiff
Fixed the cleaning method to support namespaced elements. Thanks to einaros for the...
authorJohn Resig <jeresig@gmail.com>
Mon, 12 Oct 2009 16:26:01 +0000 (16:26 +0000)
committerJohn Resig <jeresig@gmail.com>
Mon, 12 Oct 2009 16:26:01 +0000 (16:26 +0000)
src/manipulation.js

index ef4eb3e09ade88f5e419075ecb2ad6e7b72d4a50..789bf54e788d91a3ae9132756d63b5e85599c25b 100644 (file)
@@ -1,8 +1,8 @@
 var rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g,
        rleadingWhitespace = /^\s+/,
-       rxhtmlTag = /(<(\w+)[^>]*?)\/>/g,
+       rxhtmlTag = /(<([\w:]+)[^>]*?)\/>/g,
        rselfClosing = /^(?:abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i,
-       rtagName = /<(\w+)/,
+       rtagName = /<([\w:]+)/,
        rtbody = /<tbody/i,
        rhtml = /</,
        fcloseTag = function(all, front, tag){