In IE .html() function of jQuery is generating the string with unquoted attributes. E.g.
.html()
Id = mydiv
The problem with unquoted at