natemoo-re / astro-icon

Inline and sprite-based SVGs in Astro made easy!

Home Page:https://astroicon.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generated IDs on symbol elements are not valid XML

timokleemann opened this issue · comments

What version of astro-icon are you using?

v1.1.0

Astro Info

Astro                    v4.5.8
Node                     v21.6.2
System                   macOS (arm64)
Package Manager          npm
Output                   static
Adapter                  none
Integrations             astro-icon

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

It seems that the IDs on the symbol elements that are being generated are not valid XML according to the W3C markup generator. I am getting an error Bad value ai:local:services/screen for attribute id on element symbol: Not a valid XML 1.0 name for every icon that I include in my page. I guess this is due to the / inside the IDs?

astro-icon

What's the expected result?

I would expect valid IDs.

Link to Minimal Reproducible Example

https://stackblitz.com