$("html").empty() fails in IE.
Hello, this will be my first newbie question on this forum, so go easy....
I was just experimenting with methods to erase all children of <html> and replace
it with an entirely new DOM structure. I tried something as basic as this:
$("html").empty().html("<head><title>Hi!</title></head><body><h1>Hello World!</h1></body>");
So, this code fails in IE6 and IE8, but it works in the latest version of Chrome.
Does that mean this is a bug? What would be a better alternative solution that
works for IE and all other browsers?
Thank you!
rrr3