question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

xlinkHref renders an 'href' attribute, not 'xlink:href' attribute

See original GitHub issue

Well, subject. preact version: 6.4.0

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
everdimensioncommented, Nov 24, 2016

<use xlinkHref="#icon-name" />

…which is inside of an svg tag, of course

1reaction
rmalescommented, Mar 2, 2017

@developit I was actually looking into bug report which I thought might be related to this, but I think that is more likely a Firefox issue.

It’s probably not worth changing it, unless you want to match React or cover some non-browser rendering cases.

Read more comments on GitHub >

github_iconTop Results From Across the Web

xlink:href - SVG: Scalable Vector Graphics - MDN Web Docs
The xlink:href attribute defines a reference to a resource as a reference IRI. ... Deprecated: This feature is no longer recommended.
Read more >
SVG xlink:href attribute does not obey xml:base - Stack Overflow
I have a piece of simple SVG file below. The xml:base is declared in root element but the xlink:href attribute does not follow...
Read more >
On xlink:href being deprecated in SVG - CSS-Tricks
The attribute we always use for them, xlink:href , is deprecated. Indeed, MDN says: Deprecated since SVG 2 This feature has been removed...
Read more >
580809 - Changing xlink:href attribute on <use> is flaky with ...
Issue 580809: Changing xlink:href attribute on <use> is flaky with cache-control: max-age=0 · 1) Download test. · 2) Open a terminal and type...
Read more >
Linking — SVG 2 - W3C
An invalid URL does not make an SVG document non-conforming. ... For backwards compatibility, the deprecated 'xlink:href' attribute is defined below along ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found