Skip to content

Commit

Permalink
Bug 1622072 [wpt PR 22226] - correct default expectation for existing…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
marco-c committed Mar 16, 2020
1 parent 51b6494 commit 7e2461b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
window.addEventListener("load", function() {
test(() => {
const mrow = document.getElementById('mrow');
assert_equals(mrow.tabIndex, -1, "no attribute");
assert_equals(mrow.tabIndex, 0, "no attribute");
mrow.setAttribute("tabindex", "invalid");
assert_equals(mrow.getAttribute("tabindex"), "invalid");
assert_equals(mrow.tabIndex, -1, "invalid");
assert_equals(mrow.tabIndex, 0, "invalid");
mrow.setAttribute("tabindex", "9999999999");
assert_equals(mrow.getAttribute("tabindex"), "9999999999");
assert_equals(mrow.tabIndex, -1, "too large integer");
assert_equals(mrow.tabIndex, 0, "too large integer");
}, "default and invalid values on mrow");
test(() => {
const mrowLink = document.getElementById('mrow-link');
Expand Down

0 comments on commit 7e2461b

Please sign in to comment.