Add <svg tabIndex> to the attribute table (#11034)
Dan Abramov committed
Oct 2, 2017 at 18:44 UTC
da681e0699b93494a5850b5ad469e68b35bc170f
2 files changed
+30
fixtures/attribute-behavior/AttributeTableSnapshot.md
+25
@@ -10773,6 +10773,31 @@
10773
| `tabIndex=(null)`| (initial)| `<number: -1>` |
10774
| `tabIndex=(undefined)`| (initial)| `<number: -1>` |
10775
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
+
10801
## `tableValues` (on `<feFuncA>` inside `<svg>`)
10802
| Test Case | Flags | Result |
10803
| --- | --- | --- |
fixtures/attribute-behavior/src/attributes.js
+5
@@ -1858,6 +1858,11 @@ const attributes = [
1858
tagName: 'a',
1859
},
1860
{name: 'tabIndex'},
1861
+ {
1862
+ name: 'tabIndex',
1863
+ read: getSVGProperty('tabIndex'),
1864
+ tagName: 'svg',
1865
+ },
1866
{
1867
name: 'tableValues',
1868
read: getSVGProperty('tableValues'),