[jQuery] jQuery 1.2.X's .clean() mangles namespaced elements

2008-08-26 Thread Antonio Collins
The .clean() method tries to replace empty elements defined as with . Here's the code from .clean(): // Convert html string into DOM nodes if ( typeof elem == "string" ) { // Fix "XHTML"-style tags in all browsers elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front,

[jQuery] jQuery 1.2.X's .clean() mangles namespaced elements

2008-08-25 Thread Antonio Collins
The .clean() method tries to replace empty elements defined as with . Here's the code from .clean(): // Convert html string into DOM nodes if ( typeof elem == "string" ) { // Fix "XHTML"-style tags in all browsers elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front,