Skip to content

Instantly share code, notes, and snippets.

@aumouvantsillage
Created May 13, 2012 17:46
Show Gist options
  • Save aumouvantsillage/2689461 to your computer and use it in GitHub Desktop.
Save aumouvantsillage/2689461 to your computer and use it in GitHub Desktop.
Click events on SVG elements referenced through <use>
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aumouvantsillage
Copy link
Author

From http://www.w3.org/TR/SVG11/struct.html#UseElement :

An event propagates through the exposed and non-exposed portions of the tree in the same manner as it would in the regular document tree: first going from the root element to the ‘use’ element and then through non-exposed tree elements in the capture phase, followed by the target phase at the target of the event, then bubbling back through non-exposed tree to the use element and then back through regular tree to the root element in bubbling phase.

@catalin-enache
Copy link

I can confirm this issue.

@rwieruch
Copy link

Has someone found a solution for that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment