diff options
author | John Resig <jeresig@gmail.com> | 2009-10-12 16:26:01 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2009-10-12 16:26:01 +0000 |
commit | 098a2bb4d0eec2d590c222bb04bcdda7e1dcd169 (patch) | |
tree | 602d2d2c38ded9f0dfe4c515830845cc01dd91c9 /src/manipulation.js | |
parent | 4b5a680f776ee2582e2c1f85b7b0cd9a95254dc3 (diff) | |
download | jquery-098a2bb4d0eec2d590c222bb04bcdda7e1dcd169.tar.gz jquery-098a2bb4d0eec2d590c222bb04bcdda7e1dcd169.zip |
Fixed the cleaning method to support namespaced elements. Thanks to einaros for the patch recommendation. Fixes #5358.
Diffstat (limited to 'src/manipulation.js')
-rw-r--r-- | src/manipulation.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/manipulation.js b/src/manipulation.js index ef4eb3e09..789bf54e7 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -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){ |