|
14 | 14 | const mrow = document.getElementById('mrow');
|
15 | 15 | assert_equals(mrow.tabIndex, -1, "no attribute");
|
16 | 16 | mrow.setAttribute("tabindex", "invalid");
|
| 17 | + assert_equals(mrow.getAttribute("tabindex"), "invalid"); |
17 | 18 | assert_equals(mrow.tabIndex, -1, "invalid");
|
18 | 19 | mrow.setAttribute("tabindex", "9999999999");
|
| 20 | + assert_equals(mrow.getAttribute("tabindex"), "9999999999"); |
19 | 21 | assert_equals(mrow.tabIndex, -1, "too large integer");
|
20 | 22 | }, "default and invalid values on mrow");
|
21 | 23 | test(() => {
|
22 | 24 | const mrowLink = document.getElementById('mrow-link');
|
23 | 25 | assert_equals(mrow.tabIndex, 0, "no attribute");
|
24 | 26 | mrow.setAttribute("tabindex", "invalid");
|
| 27 | + assert_equals(mrow.getAttribute("tabindex"), "invalid"); |
25 | 28 | assert_equals(mrow.tabIndex, 0, "invalid");
|
26 | 29 | mrow.setAttribute("tabindex", "9999999999");
|
| 30 | + assert_equals(mrow.getAttribute("tabindex"), "9999999999"); |
27 | 31 | assert_equals(mrow.tabIndex, 0, "too large integer");
|
28 | 32 | }, "default and invalid values on MathML link");
|
29 | 33 | });
|
|
0 commit comments