xmlns:xlink (and other SVG namespaced attrs) not supported
See original GitHub issueAt the moment when I try to use a defs
element, I get the following error:
Namespace tags are not supported. ReactJSX is not XML.
Namespaces are required for effective use of SVG. Is there a design decision not to allow namespaced tags, or is it just a feature that needs implementing?
Issue Analytics
- State:
- Created 8 years ago
- Reactions:5
- Comments:5
Top Results From Across the Web
SyntaxError: unknown: Namespace tags are not supported by ...
In the SVG file, try changing: sketch:type TO sketchType xmlns:xlink TO xmlnsXlink xlink:href TO xlinkHref. etc.
Read more >Namespaces crash course - SVG: Scalable Vector Graphics
This parameter says that the <svg> element and its child elements belong to whichever XML dialect has the namespace name http://www.w3.org/2000 ...
Read more >How to solve "Attribute xmlns:b not allowed here" - MSDN
Just to make it clear, HTML5 allows a few "xlink:foo" attributes on SVG elements, so those do not need to be removed. But...
Read more >Linking — SVG 2
SVG 2 uses an alternative set of attributes in the default namespace that are consistent with HTML links, and deprecates the XLink attributes....
Read more >Linking — SVG 2 - W3C
An invalid URL does not make an SVG document non-conforming. ... However, it may also generate 'href' attributes in the XLink namespace to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
In the interest of saving time, the solution is to use camel case:
renders to
Obrigado agm1984, Lembrando que para
<svg xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 24 150 28 " />
Mesma ideia<svg xmlnsXlink="http://www.w3.org/1999/xlink" viewBox="0 24 150 28 " />
por ai vai valew !!!