Bug Tracker

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#13217 closed bug (notabug)

Event binding to svg group

Reported by: vegard.okland@… 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)

Change History (2)

comment:1 Changed 6 years ago by dmethvin

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

comment:2 in reply to:  1 Changed 6 years ago by anonymous

Replying to 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 :).

Note: See TracTickets for help on using tickets.