I think you can't read the elements and attributes in the defs section
with DOM, when using use elements to display them. The defs section of
an svg file is not part of the DOM tree. The only thing you can access
is the toolbar use element and its xlink:href=#tbFormat attribute.
Jeroen
I've spent much time trying to solve a similar issue, and have come to
the conclusion that the code below is the only way with a minimal amount
of svg text, maybe I'm wrong.
defs
g id=cmdBold/
g id=cmdItal/
g id=cmdUnln/
/defs
!-- toolbar --
g id=tbFormat
use xlink:href=#cmdBold/
2 matches
Mail list logo