This is my code:
console.log($('p').html())
<p><span data-htmlContent="<p>This is not really in a p tag.</p>">.</span>.</p>
In Chrome and older FireFox the console logs: <span data-htmlcontent="<p>This is not really in a p tag.</p>">.</span>.
But in IE and newer FireFox it logs: <span data-htmlcontent="<p>This is not really in a p tag.</p>">.</span>.
Problem can be seen here: http://jsfiddle.net/Nzj52/9/
oldHtml
string) even while they're in an attribute. This question should be fixed to remove all references to regexes and include the relevant parts.innerHTML
accessor.