Skip to content

Commit

Permalink
Create dir-role.tentative.html (#45553)
Browse files Browse the repository at this point in the history
add test for the `dir` element, which is defined as obsolete in HTML, but that it should be treated the same as `ul` and thus be exposed with an implicit role=list
  • Loading branch information
scottaohara authored Aug 20, 2024
1 parent d1f80f3 commit c74037d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
28 changes: 28 additions & 0 deletions html-aam/dir-role.tentative.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!doctype html>
<html>
<head>
<title>HTML-AAM dir Element Role Verification Test</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<script src="/resources/testdriver-actions.js"></script>
<script src="/wai-aria/scripts/aria-utils.js"></script>
</head>
<body>


<p>Tentative test for the expected role mappings of the obsolete <code>dir</code> element.
The computedrole mappings are defined in <a href="https://w3c.github.io/html-aam/">HTML-AAM</a>.<p>

<p>Merge the outcome of this test into roles.html in the appropriate alphabetical order, when it is no longer considered tentative:</p>

<dir data-testname="el-dir" data-expectedrole="list" class="ex"><li>x</li><li>x</li></dir>


<script>
AriaUtils.verifyRolesBySelector(".ex");
</script>

</body>
</html>
1 change: 1 addition & 0 deletions html-aam/roles.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
<del data-testname="el-del" data-expectedrole="deletion" class="ex">x</del>
<details data-testname="el-details" data-expectedrole="group" class="ex"><summary>x</summary>x</details>
<dfn data-testname="el-dfn" data-expectedrole="term" class="ex">x</dfn>
<!-- dir -> ./dir-role.tentative.html -->
<!-- div -> ./roles-generic.html -->
<!-- todo: dl -->

Expand Down

0 comments on commit c74037d

Please sign in to comment.