Commit 06e84c3
authored
fix(gather-internals): handle non-HTMLElement nodes (#5161)
Use `Node` instead of `HTMLElement` when checking the element internals
prop value so we include all node types, such as SVGs. This is the
follow up to a [similar problem in the `get-aria-value`
pr](#5109 (comment)).
I also added an eslint rule to prevent us from using `HTMLElements` in
the future so we don't make the same mistake again.1 parent e841a33 commit 06e84c3
2 files changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
87 | 101 | | |
88 | 102 | | |
89 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
0 commit comments