Skip to content

Commit 7e2461b

Browse files
committed
Bug 1622072 [wpt PR 22226] - correct default expectation for existing mrow test, a=testonly
Automatic update from web-platform-tests correct default expectation for existing mrow test (#22226) * Update tabindex-001.html Attempting to match defaults defined in whatwg/html#5248 definitely needs scrutiny.. * Update tabindex-001.html The default `.tabIndex` of an mrow should be 0 regardless of when it has an href or not, as a linkable element and matching historical (oddity) of other linkable things in HTML/SVG -- wpt-commits: 6b2fee71a825487369f34f82e7daa732920d186e wpt-pr: 22226 UltraBlame original commit: 88b6c5710ce466879d3991f983b9d5397d60a222
1 parent 51b6494 commit 7e2461b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

testing/web-platform/tests/mathml/relations/html5-tree/tabindex-001.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
window.addEventListener("load", function() {
1313
test(() => {
1414
const mrow = document.getElementById('mrow');
15-
assert_equals(mrow.tabIndex, -1, "no attribute");
15+
assert_equals(mrow.tabIndex, 0, "no attribute");
1616
mrow.setAttribute("tabindex", "invalid");
1717
assert_equals(mrow.getAttribute("tabindex"), "invalid");
18-
assert_equals(mrow.tabIndex, -1, "invalid");
18+
assert_equals(mrow.tabIndex, 0, "invalid");
1919
mrow.setAttribute("tabindex", "9999999999");
2020
assert_equals(mrow.getAttribute("tabindex"), "9999999999");
21-
assert_equals(mrow.tabIndex, -1, "too large integer");
21+
assert_equals(mrow.tabIndex, 0, "too large integer");
2222
}, "default and invalid values on mrow");
2323
test(() => {
2424
const mrowLink = document.getElementById('mrow-link');

0 commit comments

Comments
 (0)