I'm also running into a problem because of this, although not directly. When I called $('#something').html(newHTML), I expect this to behave somewhat like innerHTML = newHTML. However, because of all the logic inside that uses documentFragment, and elements outside of documents, unknown tags are being munged up in IE:
<header>This is a header</header> ends up being <header/>This is a header</header/> This happens because IE can only handle unknown tags if the document has created an element with that nodeName before, and it can only handle those tags inside the document, So "document.body.innerHTML = newHTML" will properly create the header element, but "document.createElement('body').innerHTML = newHTML" will not, since the resulting body element is not a part of the document which knows about the header element. You can test this yourself in IE: // let this IE document know about header element document.createElement('header'); $('#div1').html("There should be a <header>header</header> here"); $('#div2')[0].innerHTML = "There should be a <header>header</header> here"; --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-dev@googlegroups.com To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---