Hi, I'm trying to find out if this behaviour is correct, or if its something that i should submit as a bug. Using .html() works perfectly fine in all browsers, providing that the html your inserting is valid. eg.
$("body").find('#id1').html("<div>test content</div>").show(); // alert($('#id1').html()) == '<div>test content</div>' However, if i want to insert html which is invalid (just withing the string), but still might keep the total DOM valid by performing another insert immediately, then in IE7 only, it refuses to insert the html. eg. $("body").find('#id1').html("<div>test content</div></div>").show(); // alert($('#id1').html()) == '' Is this something that jQuery is deliberately doing, or is this a bug? Because, like i say, it works fine in Firefox. J