dillon1000/react

Commit

Warn for ARIA typos on custom elements (#26523)

Normally we allow any attribute/property on custom elements. However
it's a shared namespace. The `aria-` namespace applies to all generic
elements which are shared with custom elements. So arguably adding
custom extensions there is a really bad idea since it can conflict with
future additions.

It's possible there is a new standard one that's polyfilled by a custom
element but the same issue applies to React in general that we might
warn for very new additions so we just have to be quick on that.

cc @josepharhar
Browse files
Changed paths1 file
First-parent comparison
M packages/react-dom-bindings/src/shared/ReactDOMInvalidARIAHook.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…