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.

SVG not supported

See original GitHub issue
new Moon({
	template: `<svg width="200" height="200" viewport="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
    <rect x="0" y="70" width="10" height="30"></rect>
  </svg>`,
  el: '#target'
})

This code yields nothing. Seems like the svg namespace is not supported.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kbrshcommented, Feb 15, 2018

Hey! @buckle2000

SVG is partially supported in Moon v0.11.0, but had some issues. I’ve implemented full SVG support for v1.

0reactions
kbrshcommented, Mar 3, 2018

I’m still in the process of making updating attributes more efficient. If you look at other discussions in other issues, I’m also just taking a break from rewriting things for Moon v1 and am rethinking Moon’s goals and making a new API from scratch.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix: Sorry, Your Browser Does Not Support Inline SVG Error
1. Try opening SVG pages with alternative browsers · 2. Update your browser to the latest version · 3. Check your SVG code...
Read more >
SVG (basic support) | Can I use... Support tables for ... - CanIUse
Method of displaying basic Vector Graphics features using the embed or object elements. Refers to the SVG 1.1 spec. Usage % of. all...
Read more >
When i use .svg file "ERROR @<image> is not supported" in ...
If your SVG only contains PNG images, then there is no point in using an SVG anyway. Just import your PNGs to your...
Read more >
Images in .svg format no longer supported ? - Google Docs ...
SVG files so they are likely not going to be supported in the future. Here's one site that mentions the dangers in that...
Read more >
Image uploads: unsupported items - Cricut - Help
When uploading .svg or .dxf files into Cricut Design Space, ... The file will not be layered into individual colors like a vector...
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