Hi all,
I think I've seen something like this before, but I haven't been able to find
it in the archives. Here's what's going on. I have some SVG defined in
<defs>. Elsewhere in the document, I have a <g> with the attribute
"pointer-events" set to visible. Within this <g>, I have <use> elements that
reference the SVG found in <defs>. The <use> elements have further attributes
on them.
I'm registering a DOM "mouse-down" listener on the <g> tag. Pointer events are
being generated, but the event "target" is the SVG defined in <defs> and I
can't access the unique attributes found on my <use> element. Is there anyway
to discover information about the <use> element instead of the SVG it "uses"?
<defs>
<circle id="circle" ... />
</defs>
<g pointer-events="visible">
<use xlink:href="#circle" id="12345"/>
</g>
I want to discover the "id" attribute on the <use> element, but I'm getting the
<circle> as the event target.
Michael Bishop
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]