Skip to main content

Bug Tracker

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.

Attachments (2)
  • jQuery_event_bug.js (0.5 KB) - added by ebello January 22, 2009 09:11PM UTC.
  • test-3966.htm (0.8 KB) - added by dmethvin January 26, 2009 05:56PM UTC.

    Mouseover event only sticks for the first copy

Change History (2)

Changed January 26, 2009 05:58PM UTC by dmethvin comment:1

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.

Changed February 18, 2009 04:29PM UTC by john comment:2

resolution: → fixed
status: newclosed

Fixed in SVN rev [6239].