diff --git a/CHANGELOG.md b/CHANGELOG.md index c5c9253d18..8874a7233f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange * [`no-unknown-property`]: add `noModule` on `script` ([#3414][] @ljharb) * [`no-unknown-property`]: allow `onLoad` on `` ([#3415][] @OleksiiKachan) * [`no-multi-comp`]: do not detect a function property returning only null as a component ([#3412][] @ljharb) +* [`no-unknown-property`]: allow `abbr` on `` and `` ([#3415][] @OleksiiKachan) ### Changed diff --git a/lib/rules/no-unknown-property.js b/lib/rules/no-unknown-property.js index 26e39fd24f..92f0257fe3 100644 --- a/lib/rules/no-unknown-property.js +++ b/lib/rules/no-unknown-property.js @@ -28,6 +28,7 @@ const DOM_ATTRIBUTE_NAMES = { }; const ATTRIBUTE_TAGS_MAP = { + abbr: ['th', 'td'], checked: ['input'], // image is required for SVG support, all other tags are HTML. crossOrigin: ['script', 'img', 'video', 'audio', 'link', 'image'], diff --git a/tests/lib/rules/no-unknown-property.js b/tests/lib/rules/no-unknown-property.js index 911d28179b..0ff34ec3fc 100644 --- a/tests/lib/rules/no-unknown-property.js +++ b/tests/lib/rules/no-unknown-property.js @@ -46,18 +46,24 @@ ruleTester.run('no-unknown-property', rule, { { code: '
;' }, { code: 'Read more' }, { code: '' }, - { code: 'A cat sleeping on a keyboard' }, + { + code: 'A cat sleeping on a keyboard', + }, { code: '' }, { code: '' }, { code: '
' }, { code: '