Hi,
Wenn immer das gleiche Alert ausgegeben werden soll, kannst Du versuchen, innerhalb des SVGs alle tspan-Elemente zu selektieren und ihnen einen onclick-Event mitgeben.
Event Delegation sollte doch auch innerhalb eines SVG-Dokumentes funktionieren?
MfG ChrisB
--
“Whoever best describes the problem is the person most likely to solve the problem.” [Dan Roam]
“Whoever best describes the problem is the person most likely to solve the problem.” [Dan Roam]