Pregunta
Lo que probé es esto
<a xlink:target="http://ponyoverflow.com">
<text class="text" x="20" y="718" text-anchor="start">Mail Order Ponies</text>
</a>
y variaciones con href
y type = " simple "
.
Aparece el texto del enlace, pero no se puede hacer clic en el enlace. Probé Firefox 3.5.5, Chromium, Inkscape y GNOME Image Viewer.
¿Hay algún problema con la sintaxis? Si no, ¿hay alguna aplicación que admita enlaces en SVG?
Solución
Prueba esto:
<a xlink:href="http://ponyoverflow.com">
<text class="text" x="20" y="718" text-anchor="start">Mail Order Ponies</text>
</a>
... y asegúrese de tener un atributo xmlns: xlink = " http: //www.w3.org/1999/xlink"
en el elemento raíz svg.
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow