Commit 5a66053
committed
Warn for ARIA typos on custom elements
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.1 parent 73deff0 commit 5a66053
File tree
1 file changed
+1
-9
lines changed1 file changed
+1
-9
lines changedLines changed: 1 addition & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
17 | | - | |
| 16 | + | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
108 | 107 | | |
109 | 108 | | |
110 | 109 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
0 commit comments