diff --git a/fixtures/attribute-behavior/AttributeTableSnapshot.md b/fixtures/attribute-behavior/AttributeTableSnapshot.md index d0fa5f567f5..62dc25d7771 100644 --- a/fixtures/attribute-behavior/AttributeTableSnapshot.md +++ b/fixtures/attribute-behavior/AttributeTableSnapshot.md @@ -3587,8 +3587,8 @@ | `focusable=(integer)`| (changed)| `"1"` | | `focusable=(NaN)`| (changed, warning)| `"NaN"` | | `focusable=(float)`| (changed)| `"99.99"` | -| `focusable=(true)`| (initial, warning)| `` | -| `focusable=(false)`| (initial, warning)| `` | +| `focusable=(true)`| (changed)| `"true"` | +| `focusable=(false)`| (changed)| `"false"` | | `focusable=(string 'true')`| (changed)| `"true"` | | `focusable=(string 'false')`| (changed)| `"false"` | | `focusable=(string 'on')`| (changed)| `"on"` | diff --git a/packages/react-dom/src/shared/DOMProperty.js b/packages/react-dom/src/shared/DOMProperty.js index 23a00b48a59..cef4609497f 100644 --- a/packages/react-dom/src/shared/DOMProperty.js +++ b/packages/react-dom/src/shared/DOMProperty.js @@ -260,7 +260,12 @@ const properties = {}; // In React, we let users pass `true` and `false` even though technically // these aren't boolean attributes (they are coerced to strings). // Since these are SVG attributes, their attribute names are case-sensitive. -['autoReverse', 'externalResourcesRequired', 'preserveAlpha'].forEach(name => { +[ + 'autoReverse', + 'externalResourcesRequired', + 'focusable', + 'preserveAlpha', +].forEach(name => { properties[name] = new PropertyInfoRecord( name, BOOLEANISH_STRING,