From 7e2461b42013a1d62dd12e43818f05fcb2cc80b7 Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Mon, 16 Mar 2020 12:06:13 +0000 Subject: [PATCH] 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 https://github.com/whatwg/html/pull/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 --- .../tests/mathml/relations/html5-tree/tabindex-001.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testing/web-platform/tests/mathml/relations/html5-tree/tabindex-001.html b/testing/web-platform/tests/mathml/relations/html5-tree/tabindex-001.html index 8f8536881416..9c7c9c2e2ce3 100644 --- a/testing/web-platform/tests/mathml/relations/html5-tree/tabindex-001.html +++ b/testing/web-platform/tests/mathml/relations/html5-tree/tabindex-001.html @@ -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');