-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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] no-unknown-property: No unknown property doesn't recognize svg properties #3381
[Fix] no-unknown-property: No unknown property doesn't recognize svg properties #3381
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3381 +/- ##
=======================================
Coverage 97.57% 97.57%
=======================================
Files 123 123
Lines 8954 8954
Branches 3268 3268
=======================================
Hits 8737 8737
Misses 217 217
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
fill: ['svg'], | ||
property: ['meta'], | ||
viewBox: ['svg'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i added these as well.
@@ -29,6 +29,9 @@ const DOM_ATTRIBUTE_NAMES = { | |||
const ATTRIBUTE_TAGS_MAP = { | |||
// image is required for SVG support, all other tags are HTML. | |||
crossOrigin: ['script', 'img', 'video', 'audio', 'link', 'image'], | |||
fill: ['svg'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fill
appears to be OK on a number of other tags, such as path
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be handled by #3385
fixes #3380
I don't know if the added attributes are exhaustive or not. I sure hope MDN covered all possible attributes.