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
Fix false positives for SVG type selectors in selector-type-case #5712
Comments
@hverlin Thank you for using a template! It seems useful to ignore I've labeled the issue as ready to implement. Please consider contributing if you have time. There are steps on how to fix a bug in a rule in the Developer guide. Perhaps, a bugfix may add an additional check to stylelint/lib/rules/selector-type-case/index.js Lines 62 to 64 in bf34554
|
When seeing https://developer.mozilla.org/en-US/docs/Web/SVG/Element, there are many elements with mixed-case like |
Let's add these to our reference file and ignore them by default. |
Thanks! Will create a PR with the suggested fix |
Created #5717, let me know if you have feedback. |
What steps are needed to reproduce the bug?
There is a false positive for
foreignObject
.The following code will indicate that there is
selector-type-case
issueLink to a demo
What Stylelint configuration is needed to reproduce the bug?
How did you run Stylelint?
CLI, or see the demo link
Which version of Stylelint are you using?
14.0.0
,13.13.1
What did you expect to happen?
No problems to be reported
What actually happened?
Got the following error:
Does the bug relate to non-standard syntax?
No
Proposal to fix the bug
There should be no issue as
foreignObject
tag is part of SVG definition.A potential workaround for now is to use the following config
The text was updated successfully, but these errors were encountered: