Skip to main content

Bug Tracker

Side navigation

#12714 closed bug (duplicate)

Opened October 12, 2012 09:58AM UTC

Closed October 12, 2012 01:08PM UTC

.on(event, SELECTOR, callback) on SVG elements breaks with class selector

Reported by: norman.pellet@gmail.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.2
Keywords: Cc:
Blocked by: Blocking:
Description

http://jsfiddle.net/tuZax/1/

Works with 1.7.2, broken with 1.8.2

Event: Mouse over the rectangle

Expected behaviour: Two console logs (Hovered By Element and Hovered By Class)

Behavious in jQ 1.8.2: Only Hovered By Element is triggered

In other words:

with the selector "rect", it works in both versions

with the selector ".myRect", it works only in 1.7.2

Attachments (0)
Change History (2)

Changed October 12, 2012 10:04AM UTC by norman.pellet@gmail.com comment:1

PS: Bug is not webkit / gecko dependent

Changed October 12, 2012 01:08PM UTC by dmethvin comment:2

resolution: → duplicate
status: newclosed

Duplicate of #12626.See #12626 for the workaround. SVG is not DOM or HTML.