1

I have numerous a elements within the svg linking to other pages. The svg loads into a browser as a standalone and the links work fine. But as an object in an html page, nothing.

The problem is exactly as if I had xmlns:xlink="http://www.w3.org/1999/xlink" missing from the svg, but it's there!

3
  • Do you have a link to the HTML page or a HTML sample?
    – RacerNerd
    Commented May 19, 2014 at 23:21
  • jsfiddle.net/paulBoo/XMpPn
    – koober
    Commented May 19, 2014 at 23:37
  • Copy your fiddles code into your question. Also, that fiddle won't work as the "sitemap3.svg" won't exist for jsfiddle. Can you give it an absolute URL?
    – user764357
    Commented May 20, 2014 at 0:21

1 Answer 1

0

Bizarre, I have found the problem.

<object data etc.><span>something</span></object>

SVG xlinks work ok, but with

<object data etc.></object> <span>something</span> 

xlinks dont work. Why this is so, I cannot figure out.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.