Skip to content

Commit

Permalink
Add DOM prop definition
Browse files Browse the repository at this point in the history
  • Loading branch information
lounsbrough committed Nov 13, 2023
1 parent 2b460bb commit 333fbe5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rules/no-unknown-property.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const DOM_ATTRIBUTE_NAMES = {
crossorigin: 'crossOrigin',
for: 'htmlFor',
nomodule: 'noModule',
displaystyle: 'displayStyle',
};

const ATTRIBUTE_TAGS_MAP = {
Expand All @@ -34,7 +35,7 @@ const ATTRIBUTE_TAGS_MAP = {
checked: ['input'],
// image is required for SVG support, all other tags are HTML.
crossOrigin: ['script', 'img', 'video', 'audio', 'link', 'image'],
displaystyle: ['math'],
displayStyle: ['math'],
// https://html.spec.whatwg.org/multipage/links.html#downloading-resources
download: ['a', 'area'],
fill: [ // https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill
Expand Down

0 comments on commit 333fbe5

Please sign in to comment.