layout | tags |
---|---|
doc-api.html |
argument-list |
Determines if an element's tabindex
attribute value is sound
var element = document.getElementById('victim');
var isValidTabindex = ally.is.validTabindex(element);
Name | Type | Default | Description |
---|---|---|---|
element | HTMLElement |
required | The Element to test. |
Boolean, true
if the element is has a valid tabindex attribute specified.
TypeError
if element
argument is not of type HTMLElement
.
- Since
v1.4.0
supportstabIndex
as attribute name for SVG elements in Microsoft Edge.
::note
Empty tabindex [tabindex=""]
parsed and exposed as [tabindex="-32768"]
- Trident 1072965.
:::
:::note
Invalid tabindex
value makes element focusable in - Gecko 1128054.
:::
:::warning
Gecko, Blink and WebKit consider [tabindex="3x"]
valid.
:::
:::warning
Only Blink and WebKit respect the tabindex
attribute on SVGElements (defined in SVG 2).