Side navigation
Ticket #4383: test.htm
File test.htm, 2.4 KB (added by Blak, March 19, 2009 10:55AM UTC)
Test case
append / appendTo inconsistancy
Note: this bug only seems to be valid in browsers that use addEventListener. Browsers that use attachEvent (i.e. IE) appear to be unaffected.
Using button.appendTo("#appendto div") - Works as expected
Here is a p tag, after this (but within the containing div) a button shall be appended, click it and an event fires
Here is another p tag, after this (but within the containing div) a button shall be appended, click it and an event fires
Using $("#append div").append(button2) - Doesn't work as expected: click event is not bound
Here is a p tag, after this (but within the containing div) a button shall be appended, however it's click event is not bound
Here is another p tag, after this (but within the containing div) a button shall be appended, however it's click event is not bound
Using $("#append div:first").append(button3) - Works as expected: but only because we are appending to 1 element
Here is a p tag, after this (but within the containing div) a button shall be appended, click it and an event fires
Here is another p tag, The button should not be appended to this p tag
Download in other formats:
Original Format
File test.htm, 2.4 KB (added by Blak, March 19, 2009 10:55AM UTC)
Test case
append / appendTo inconsistancy
Note: this bug only seems to be valid in browsers that use addEventListener. Browsers that use attachEvent (i.e. IE) appear to be unaffected.
Using button.appendTo("#appendto div") - Works as expected
Here is a p tag, after this (but within the containing div) a button shall be appended, click it and an event fires
Here is another p tag, after this (but within the containing div) a button shall be appended, click it and an event fires
Using $("#append div").append(button2) - Doesn't work as expected: click event is not bound
Here is a p tag, after this (but within the containing div) a button shall be appended, however it's click event is not bound
Here is another p tag, after this (but within the containing div) a button shall be appended, however it's click event is not bound
Using $("#append div:first").append(button3) - Works as expected: but only because we are appending to 1 element
Here is a p tag, after this (but within the containing div) a button shall be appended, click it and an event fires
Here is another p tag, The button should not be appended to this p tag