Skip to content

Commit

Permalink
Add <svg tabIndex> to the attribute table
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Oct 2, 2017
1 parent 5cb17c4 commit 0574491
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
25 changes: 25 additions & 0 deletions fixtures/attribute-behavior/AttributeTableSnapshot.md
Original file line number Diff line number Diff line change
Expand Up @@ -10773,6 +10773,31 @@
| `tabIndex=(null)`| (initial)| `<number: -1>` |
| `tabIndex=(undefined)`| (initial)| `<number: -1>` |

## `tabIndex` (on `<svg>` inside `<div>`)
| Test Case | Flags | Result |
| --- | --- | --- |
| `tabIndex=(string)`| (initial)| `<number: -1>` |
| `tabIndex=(empty string)`| (initial)| `<number: -1>` |
| `tabIndex=(array with string)`| (initial)| `<number: -1>` |
| `tabIndex=(empty array)`| (initial)| `<number: -1>` |
| `tabIndex=(object)`| (initial)| `<number: -1>` |
| `tabIndex=(numeric string)`| (initial, ssr mismatch)| `<number: -1>` |
| `tabIndex=(-1)`| (initial)| `<number: -1>` |
| `tabIndex=(0)`| (initial, ssr mismatch)| `<number: -1>` |
| `tabIndex=(integer)`| (initial, ssr mismatch)| `<number: -1>` |
| `tabIndex=(NaN)`| (initial, warning)| `<number: -1>` |
| `tabIndex=(float)`| (initial, ssr mismatch)| `<number: -1>` |
| `tabIndex=(true)`| (initial, warning)| `<number: -1>` |
| `tabIndex=(false)`| (initial, warning)| `<number: -1>` |
| `tabIndex=(string 'true')`| (initial)| `<number: -1>` |
| `tabIndex=(string 'false')`| (initial)| `<number: -1>` |
| `tabIndex=(string 'on')`| (initial)| `<number: -1>` |
| `tabIndex=(string 'off')`| (initial)| `<number: -1>` |
| `tabIndex=(symbol)`| (initial, warning)| `<number: -1>` |
| `tabIndex=(function)`| (initial, warning)| `<number: -1>` |
| `tabIndex=(null)`| (initial)| `<number: -1>` |
| `tabIndex=(undefined)`| (initial)| `<number: -1>` |

## `tableValues` (on `<feFuncA>` inside `<svg>`)
| Test Case | Flags | Result |
| --- | --- | --- |
Expand Down
5 changes: 5 additions & 0 deletions fixtures/attribute-behavior/src/attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -1858,6 +1858,11 @@ const attributes = [
tagName: 'a',
},
{name: 'tabIndex'},
{
name: 'tabIndex',
read: getSVGProperty('tabIndex'),
tagName: 'svg',
},
{
name: 'tableValues',
read: getSVGProperty('tableValues'),
Expand Down

0 comments on commit 0574491

Please sign in to comment.