blob: 90fabc604b6e734ce1d4a11f75aed49e953eaa08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
This page tests that the tabindex attribute is clamped to values between -32768 and 32767. Values outside of this range should be clamped to the range limits.
Testing input elements in the page
getAttribute("tabindex") = 40000; tabIndex = 32767
getAttribute("tabindex") = 32768; tabIndex = 32767
getAttribute("tabindex") = 32767; tabIndex = 32767
getAttribute("tabindex") = 32766; tabIndex = 32766
getAttribute("tabindex") = 0; tabIndex = 0
getAttribute("tabindex") = -1; tabIndex = -1
getAttribute("tabindex") = -32767; tabIndex = -32767
getAttribute("tabindex") = -32768; tabIndex = -32768
getAttribute("tabindex") = -32769; tabIndex = -32768
getAttribute("tabindex") = -40000; tabIndex = -32768
Testing setAttribute on an anchor element made with document.createElement
getAttribute("tabindex") = 40000; tabIndex = 32767
getAttribute("tabindex") = 32768; tabIndex = 32767
getAttribute("tabindex") = 32767; tabIndex = 32767
getAttribute("tabindex") = 32766; tabIndex = 32766
getAttribute("tabindex") = 0; tabIndex = 0
getAttribute("tabindex") = -1; tabIndex = -1
getAttribute("tabindex") = -32767; tabIndex = -32767
getAttribute("tabindex") = -32768; tabIndex = -32768
getAttribute("tabindex") = -40000; tabIndex = -32768
Testing tabIndex on an area element made with document.createElement
getAttribute("tabindex") = 40000; tabIndex = 32767
getAttribute("tabindex") = 32768; tabIndex = 32767
getAttribute("tabindex") = 32767; tabIndex = 32767
getAttribute("tabindex") = 32766; tabIndex = 32766
getAttribute("tabindex") = 0; tabIndex = 0
getAttribute("tabindex") = -1; tabIndex = -1
getAttribute("tabindex") = -32767; tabIndex = -32767
getAttribute("tabindex") = -32768; tabIndex = -32768
getAttribute("tabindex") = -40000; tabIndex = -32768
|