lishu / vscode-svg2

A vscode svg langauge support extension
MIT License
200 stars 10 forks source link

Warning reports in element SVG attributes #154

Closed ronaldosc closed 1 year ago

ronaldosc commented 1 year ago

There's a misundestood on provide errors for camelcase attributes in SVG tagname:

image

The error point to attributes the tagname error for using only lowercase.

But as we see in MDN the element attributes support camelcase:

image

lishu commented 1 year ago

This error message comes from other third-party extensions, and VSCode displays information from multiple extensions together

ronaldosc commented 1 year ago

Which third-party extensions? This is from the extension vscode-svg2. Not?

@lishu Take a look at error documentation mentioned..

ronaldosc commented 1 year ago

I noted this is a warning from HTML, not a pure svg file.

lishu commented 1 year ago

You can see what's missing by disabling the SVG extension, which is what the extension provides, and the rest is naturally not.

ronaldosc commented 1 year ago

@lishu

Pehaps in extension description you can cite that it wasn't develop for element inline SVG within HTML.

for reforcing that can surges some tipe of warnings in the names used in SVG.