Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 BUG: SVG tag doesn't support set:html #260

Closed
davidwarrington opened this issue Apr 24, 2022 · 1 comment · Fixed by withastro/astro#3205
Closed

🐛 BUG: SVG tag doesn't support set:html #260

davidwarrington opened this issue Apr 24, 2022 · 1 comment · Fixed by withastro/astro#3205

Comments

@davidwarrington
Copy link

Describe the Bug

I'm not certain if this is the correct place for the issue, so if it belongs in another repo please point me there.

Adding set:html to an SVG tag results in the following error in VSCode

image

Property 'set:html' does not exist on type 'SVGProps<SVGSVGElement>'.

Steps to Reproduce

  1. npm init astro using any template
  2. Create an empty .astro component file
  3. Add <svg set:html={''}></svg>
  4. Error! VSCode reports that this is an error however Astro can still render this properly.
@Princesseuh
Copy link
Member

Princesseuh commented Apr 24, 2022

This is the right repo 😄 Good catch, I did in fact forget to add it to SVG elements!

Thank you for creating an issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants