Skip to content

Commit 0574491

Browse files
committed
Add <svg tabIndex> to the attribute table
1 parent 5cb17c4 commit 0574491

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

fixtures/attribute-behavior/AttributeTableSnapshot.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10773,6 +10773,31 @@
1077310773
| `tabIndex=(null)`| (initial)| `<number: -1>` |
1077410774
| `tabIndex=(undefined)`| (initial)| `<number: -1>` |
1077510775

10776+
## `tabIndex` (on `<svg>` inside `<div>`)
10777+
| Test Case | Flags | Result |
10778+
| --- | --- | --- |
10779+
| `tabIndex=(string)`| (initial)| `<number: -1>` |
10780+
| `tabIndex=(empty string)`| (initial)| `<number: -1>` |
10781+
| `tabIndex=(array with string)`| (initial)| `<number: -1>` |
10782+
| `tabIndex=(empty array)`| (initial)| `<number: -1>` |
10783+
| `tabIndex=(object)`| (initial)| `<number: -1>` |
10784+
| `tabIndex=(numeric string)`| (initial, ssr mismatch)| `<number: -1>` |
10785+
| `tabIndex=(-1)`| (initial)| `<number: -1>` |
10786+
| `tabIndex=(0)`| (initial, ssr mismatch)| `<number: -1>` |
10787+
| `tabIndex=(integer)`| (initial, ssr mismatch)| `<number: -1>` |
10788+
| `tabIndex=(NaN)`| (initial, warning)| `<number: -1>` |
10789+
| `tabIndex=(float)`| (initial, ssr mismatch)| `<number: -1>` |
10790+
| `tabIndex=(true)`| (initial, warning)| `<number: -1>` |
10791+
| `tabIndex=(false)`| (initial, warning)| `<number: -1>` |
10792+
| `tabIndex=(string 'true')`| (initial)| `<number: -1>` |
10793+
| `tabIndex=(string 'false')`| (initial)| `<number: -1>` |
10794+
| `tabIndex=(string 'on')`| (initial)| `<number: -1>` |
10795+
| `tabIndex=(string 'off')`| (initial)| `<number: -1>` |
10796+
| `tabIndex=(symbol)`| (initial, warning)| `<number: -1>` |
10797+
| `tabIndex=(function)`| (initial, warning)| `<number: -1>` |
10798+
| `tabIndex=(null)`| (initial)| `<number: -1>` |
10799+
| `tabIndex=(undefined)`| (initial)| `<number: -1>` |
10800+
1077610801
## `tableValues` (on `<feFuncA>` inside `<svg>`)
1077710802
| Test Case | Flags | Result |
1077810803
| --- | --- | --- |

fixtures/attribute-behavior/src/attributes.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1858,6 +1858,11 @@ const attributes = [
18581858
tagName: 'a',
18591859
},
18601860
{name: 'tabIndex'},
1861+
{
1862+
name: 'tabIndex',
1863+
read: getSVGProperty('tabIndex'),
1864+
tagName: 'svg',
1865+
},
18611866
{
18621867
name: 'tableValues',
18631868
read: getSVGProperty('tableValues'),

0 commit comments

Comments
 (0)