Ticket #1555 (closed bug: duplicate)
Scripts execute before being put into the document
|Reported by:||fstorm||Owned by:||john|
In jQuery 1.1.4 scripts get automatically evaluated when they're attached to the DOM. But they're also evaluated when they're attached to elements which are not part of the document DOM yet. I think scripts shouldn't be evaluated until they're attached to the document DOM.
When executed, this function displays the alert "hello!". I think it shouldn't unless you insert test_elem into the document DOM.
This breaks compatibility between 184.108.40.206 and 1.1.4 on my website.
comment:2 Changed 8 years ago by joern
- Component changed from core to ajax
comment:3 Changed 7 years ago by dmethvin
- Keywords script added
- Summary changed from automatic script evaluation to Scripts execute before being put into the document