Side navigation
#3966 closed bug (fixed)
Opened January 22, 2009 09:11PM UTC
Closed February 18, 2009 04:29PM UTC
Event doesn't get attached to all newly created elements when element is added to multiple nodes with one selector
Reported by: | ebello | Owned by: | brandon |
---|---|---|---|
Priority: | minor | Milestone: | 1.3.2 |
Component: | event | Version: | 1.3.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I am creating a new div and assigning a mouseover event to it. I am then appending this div to multiple nodes with appendTo. In 1.2.6, this works fine, but in 1.3.1, the mouseover event only gets applied to the first created instance.
Here's a simpler test case. Definitely works with 1.2.6 but fails with 1.3; tested with Firefox 3.0.2 and IE7. This may be due to how domManip now uses the original element for the first insert rather than making a clone each time the way it did in 1.2.6.