Ticket #5845 (closed bug: fixed)
Error with closing tags in query 1.4 and html method (1.3.2 was OK)
|Reported by:||ecentinela||Owned by:|
|Keywords:||html closing tags||Cc:|
When using the html in 1.4 the elements are not injected correctly.
In the attached test case you can see a div called "parent_2" that must be in the same level as "parent_1", but in jQuery 1.4 it's injected as a child of "parent_1".
Seems that the problem comes with the auto closing div called "child_1_of_child_1_of_parent_1", because if I change it for a "open and close tag", it works!
This is a bug introduced in 1.4 that was not present in 1.3.2
Hope it can be solved in 1.4.1 because a lot of my code is using this type of notation (it worked on all versions of jQuery I used).
PD: if you change the ".html" for ".append" the elements are injected correctly.