Skip to content

Commit 062b30a

Browse files
scottaoharacarmacleod
authored andcommitted
deprecate role=directory (#1080)
1 parent f849e1e commit 062b30a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

index.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -2776,8 +2776,9 @@ <h2>Definition of Roles</h2>
27762776
<div class="role" id="directory">
27772777
<rdef>directory</rdef>
27782778
<div class="role-description">
2779-
<p>A list of references to members of a group, such as a static table of contents.</p>
2780-
<p>Authors SHOULD use this <a>role</a> for a static table of contents, whether linked or unlinked. This includes tables of contents built with lists, including nested lists. Dynamic tables of contents, however, might use a <rref>tree</rref> role instead.</p>
2779+
<p>[Deprecated in ARIA 1.2] A list of references to members of a group, such as a static table of contents.</p>
2780+
<p class="note">As exposed by accessibility APIs, the <code>directory</code> <a>role</a> is essentially equivalent to the <code>list</code> <a>role</a>. So, using <code>directory</code> does not provide any additional benefits to assistive technology users. Authors are advised to treat <code>directory</code> as deprecated and to use <code>list</code>, or a host language's equivalent semantics instead.</p>
2781+
<p>A <code>directory</code> is a static table of contents, whether linked or unlinked. This includes tables of contents built with lists, including nested lists. Dynamic tables of contents, however, might use a <rref>tree</rref> role instead.</p>
27812782
</div>
27822783
<table class="role-features">
27832784
<caption>Characteristics:</caption>

0 commit comments

Comments
 (0)