dillon1000/react
Commit
Browse files 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
Changed paths1 file
First-parent comparisonpackages/react-dom-bindings/src/shared/ReactDOMInvalidARIAHook.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…