I
I
IG512016-08-24 09:35:45
HTML
IG51, 2016-08-24 09:35:45

Why don't links to SVG elements work in mozilla firefox?

Hello, _<_a href"#"_><_/a_>_ images assigned to SVG elements in mozilla firefox do not work.
Links open normally in other browsers (opera and google chrome)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GreatRash, 2016-08-24
@IG51

Because you spell them wrong. You write them using the HTML markup language, while SVG documents use the XML markup language. In this case, you are missing a namespace. It is correct to write like this:

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  <a xlink:href="//google.com">
    <text x="0" y="0">Google</text>
  </a>
</svg>

It is very wrong that WebKits correct your mistakes for you. But Mozilla is a hammer.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question