Add tabindex to default 'all' selector

See #178
This commit is contained in:
Florian Bruhin 2018-10-08 19:43:25 +02:00
parent f36285658e
commit 3fe64085f8
3 changed files with 4 additions and 0 deletions

View File

@ -2609,6 +2609,7 @@ Default:
* +pass:[[ngClick]]+
* +pass:[[data-ng-click]]+
* +pass:[[x-ng-click]]+
* +pass:[[tabindex]]+
- +pass:[images]+:
* +pass:[img]+

View File

@ -1186,6 +1186,7 @@ hints.selectors:
- '[ngClick]'
- '[data-ng-click]'
- '[x-ng-click]'
- '[tabindex]'
links:
- 'a[href]'
- 'area[href]'

View File

@ -183,6 +183,8 @@ class SelectionAndFilterTests:
('<p role="option" foo="bar"/>', ['all']),
('<p role="button" foo="bar"/>', ['all']),
('<p role="button" href="bar"/>', ['all', 'url']),
('<span tabindex=0 />', ['all']),
]
GROUPS = ['all', 'links', 'images', 'url', 'inputs']