🔗ally.is.validTabindex
Determines if an element's tabindex attribute value is sound
🔗Usage
var element = document.getElementById('victim');
var isValidTabindex = ally.is.validTabindex(element);
🔗Arguments
| Name | Type | Default | Description |
|---|---|---|---|
| element | HTMLElement | required | The Element to test. |
🔗Returns
Boolean, true if the element is has a valid tabindex attribute specified.
🔗Throws
TypeError if element argument is not of type HTMLElement.
🔗Notes
WARNING: invalid
tabindex value makes element focusable - Gecko 1128054WARNING: Gecko, Blink and WebKit consider
[tabindex="3x"] validWARNING: only Blink and WebKit respect the
tabindex attribute on SVGElements (defined in SVG 2)