From 098a2bb4d0eec2d590c222bb04bcdda7e1dcd169 Mon Sep 17 00:00:00 2001 From: John Resig Date: Mon, 12 Oct 2009 16:26:01 +0000 Subject: [PATCH] Fixed the cleaning method to support namespaced elements. Thanks to einaros for the patch recommendation. Fixes #5358. --- src/manipulation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = /