Open vinkl opened 11 years ago
Thanks for the report.
If you'd like to create a pull request and make sure all the tests still pass, that would be useful.
Just a warning about XHTML or XHTML5 -- IE has never properly handled XML mime-types until IE9 -- so if you need legacy IE support, I strongly recommend that you do not use XHTML unless you have a good content negotiation strategy in place on the server so you can serve HTML5 to old IE.
Line 257 should be as follows to work with XTHML:
instead of
Otherwise, when used with JQuery, it will cause:
SyntaxError: An invalid or illegal string was specified
tmp.innerHTML = wrap[1] + elem.replace( rxhtmlTag, "<$1></$2>" ) + wrap[2];