Bug 1622072 [wpt PR 22226] - correct default expectation for existing mrow test, a=testonly
authorBrian Kardell <bkardell@gmail.com>
Sat, 14 Mar 2020 11:29:49 +0000
changeset 518856 88b6c5710ce466879d3991f983b9d5397d60a222
parent 518855 1109fcdb0f36a03cfe6d1b650f6bc244f9493dc0
child 518857 3eb5aa166665294edba623b9ec502587b04f3763
push id37217
push userccoroiu@mozilla.com
push dateSun, 15 Mar 2020 21:37:59 +0000
treeherdermozilla-central@f9fc9427476e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1622072, 22226
milestone76.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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
testing/web-platform/tests/mathml/relations/html5-tree/tabindex-001.html
--- a/testing/web-platform/tests/mathml/relations/html5-tree/tabindex-001.html
+++ b/testing/web-platform/tests/mathml/relations/html5-tree/tabindex-001.html
@@ -7,23 +7,23 @@
 <link rel="help" href="https://mathml-refresh.github.io/mathml-core/#the-top-level-math-element">
 <meta name="assert" content="Verify default values for the tabIndex attribute">
 <script src="/resources/testharness.js"></script>
 <script src="/resources/testharnessreport.js"></script>
 <script>
   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');
           assert_equals(mrow.tabIndex, 0, "no attribute");
           mrow.setAttribute("tabindex", "invalid");
           assert_equals(mrow.getAttribute("tabindex"), "invalid");
           assert_equals(mrow.tabIndex, 0, "invalid");
           mrow.setAttribute("tabindex", "9999999999");