.html() changes the html structure
I wonder why is
- $("<div><script type='text/javascript'></script></div>").length == 2
in 1.3 this used to be one single node, while 1.4 extracts the script element and places after the div.
this causes a lots of problems with plugins which expect that their input will parse into a single node.
is there an explanation for this? is it a bug? if it's not, how can i force jquery to stop doing this (other than reverting back to 1.3.x?)