Skip to content

Commit 25249f3

Browse files
committed
[Fix] closedBy -> closedby
See #3980
1 parent f961a85 commit 25249f3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange
1111

1212
### Fixed
1313
* [`no-unknown-property`]: allow `onLoad` on `body` ([#3923][] @DerekStapleton)
14-
* [`no-unknown-property`]: allow `closedBy` on `dialog` ([#3980][] @ljharb)
14+
* [`no-unknown-property`]: allow `closedby` on `dialog` ([#3980][] @ljharb)
1515

1616
[#3980]: https://github.com/jsx-eslint/eslint-plugin-react/issues/3980
1717
[#3930]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3930

lib/rules/no-unknown-property.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const ATTRIBUTE_TAGS_MAP = {
3333
abbr: ['th', 'td'],
3434
charset: ['meta'],
3535
checked: ['input'],
36-
closedBy: ['dialog'],
36+
closedby: ['dialog'],
3737
// image is required for SVG support, all other tags are HTML.
3838
crossOrigin: ['script', 'img', 'video', 'audio', 'link', 'image'],
3939
displaystyle: ['math'],

tests/lib/rules/no-unknown-property.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ ruleTester.run('no-unknown-property', rule, {
149149
{ code: '<hr align="top" />' },
150150
{ code: '<applet align="top" />' },
151151
{ code: '<marker fill="#000" />' },
152-
{ code: '<dialog closedBy="something" onClose={handler} open id="dialog" returnValue="something" onCancel={handler2} />' },
152+
{ code: '<dialog closedby="something" onClose={handler} open id="dialog" returnValue="something" onCancel={handler2} />' },
153153
{
154154
code: `
155155
<table align="top">

0 commit comments

Comments
 (0)