diff --git a/fixtures/attribute-behavior/AttributeTableSnapshot.md b/fixtures/attribute-behavior/AttributeTableSnapshot.md index c924b215355dd..5a57877f1b643 100644 --- a/fixtures/attribute-behavior/AttributeTableSnapshot.md +++ b/fixtures/attribute-behavior/AttributeTableSnapshot.md @@ -3223,6 +3223,31 @@ | `end=(null)`| (initial)| `` | | `end=(undefined)`| (initial)| `` | +## `enterKeyHint` (on `` inside `
`) +| Test Case | Flags | Result | +| --- | --- | --- | +| `enterKeyHint=(string)`| (initial)| `` | +| `enterKeyHint=(empty string)`| (initial)| `` | +| `enterKeyHint=(array with string)`| (initial)| `` | +| `enterKeyHint=(empty array)`| (initial)| `` | +| `enterKeyHint=(object)`| (initial)| `` | +| `enterKeyHint=(numeric string)`| (initial)| `` | +| `enterKeyHint=(-1)`| (initial)| `` | +| `enterKeyHint=(0)`| (initial)| `` | +| `enterKeyHint=(integer)`| (initial)| `` | +| `enterKeyHint=(NaN)`| (initial, warning)| `` | +| `enterKeyHint=(float)`| (initial)| `` | +| `enterKeyHint=(true)`| (initial, warning)| `` | +| `enterKeyHint=(false)`| (initial, warning)| `` | +| `enterKeyHint=(string 'true')`| (initial)| `` | +| `enterKeyHint=(string 'false')`| (initial)| `` | +| `enterKeyHint=(string 'on')`| (initial)| `` | +| `enterKeyHint=(string 'off')`| (initial)| `` | +| `enterKeyHint=(symbol)`| (initial, warning)| `` | +| `enterKeyHint=(function)`| (initial, warning)| `` | +| `enterKeyHint=(null)`| (initial)| `` | +| `enterKeyHint=(undefined)`| (initial)| `` | + ## `exponent` (on `` inside ``) | Test Case | Flags | Result | | --- | --- | --- | diff --git a/fixtures/attribute-behavior/src/attributes.js b/fixtures/attribute-behavior/src/attributes.js index 17d7767bcc503..139ad85ae3075 100644 --- a/fixtures/attribute-behavior/src/attributes.js +++ b/fixtures/attribute-behavior/src/attributes.js @@ -556,6 +556,11 @@ const attributes = [ tagName: 'animate', read: getSVGAttribute('end'), }, + { + name: 'enterKeyHint', + tagName: 'input', + read: getProperty('enterKeyHint'), + }, { name: 'exponent', read: getSVGProperty('exponent'), diff --git a/packages/react-dom/src/shared/possibleStandardNames.js b/packages/react-dom/src/shared/possibleStandardNames.js index 516e20b0f6e88..b3e1f1d95416d 100644 --- a/packages/react-dom/src/shared/possibleStandardNames.js +++ b/packages/react-dom/src/shared/possibleStandardNames.js @@ -59,6 +59,7 @@ const possibleStandardNames = { download: 'download', draggable: 'draggable', enctype: 'encType', + enterkeyhint: 'enterKeyHint', for: 'htmlFor', form: 'form', formmethod: 'formMethod',