From: John Resig Date: Mon, 12 Oct 2009 16:26:01 +0000 (+0000) Subject: Fixed the cleaning method to support namespaced elements. Thanks to einaros for the... X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=commitdiff_plain;h=098a2bb4d0eec2d590c222bb04bcdda7e1dcd169 Fixed the cleaning method to support namespaced elements. Thanks to einaros for the patch recommendation. Fixes #5358. --- diff --git a/src/manipulation.js b/src/manipulation.js index ef4eb3e..789bf54 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 = /