Skip to main content

Bug Tracker

Side navigation

#13217 closed bug (notabug)

Opened January 15, 2013 01:09PM UTC

Closed January 15, 2013 01:27PM UTC

Last modified January 15, 2013 01:35PM UTC

Event binding to svg group

Reported by: vegard.okland@cxense.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.3
Keywords: Cc:
Blocked by: Blocking:
Description

Note: this might be a dupicate of #13180

Test case: http://jsbin.com/oseluw/6/edit

I am not able to bind mouseevents to svg groups as expected using $("#root").find(".parent").on("mouse-event", "g.class", function);

From what I can tell it works in 1.7.2.

Tested in Chrome 24.0.1312.52, Chrome Canary ( 26.0.1383.0 canary), Safari (6.0.2 (8536.26.17)), Firefox (16.0.2, 17.0.1, 18.0) and Opera(12.12)

Attachments (0)
Change History (2)

Changed January 15, 2013 01:27PM UTC by dmethvin comment:1

resolution: → notabug
status: newclosed

SVG isn't HTML DOM so you have to use attribute syntax:

http://jsbin.com/oseluw/9/edit 1.8.3

http://jsbin.com/oseluw/11/edit 1.9.0

Changed January 15, 2013 01:35PM UTC by anonymous comment:2

Replying to [comment:1 dmethvin]:

SVG isn't HTML DOM so you have to use attribute syntax: http://jsbin.com/oseluw/9/edit 1.8.3 http://jsbin.com/oseluw/11/edit 1.9.0

Ok, thank you very much for the feedback :).