Ticket #11589 (closed bug: cantfix)
Putting Html In A Div Closed Within Its Opening Tag, Causes Content Below That Div To Disappear
|Reported by:||Jay32||Owned by:|
Click on the text 'Click me'.
Apparently, it makes a difference whether the first div is closed like this:
<div id="first" />
Or like this:
<div id="first" ></div>
Using the first div, closed within its opening tag, causes Jquery to delete everything below that div when appending html to it.
Using the second div, closed with an explicit closing tag, it works as expected. The first div has some html set, and all other elements are left undisturbed.