Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/ariaPublic

Commitc908c7f

Browse files
MelSumnercarmacleodmcking65
authored
Updated aria-setsize and aria-posinset to clarify usage for authors (#1332)
Co-authored-by: Carolyn MacLeod <Carolyn_MacLeod@ca.ibm.com>Co-authored-by: Matt King <a11yThinker@Gmail.com>
1 parent8fa8068 commitc908c7f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎index.html‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12425,8 +12425,8 @@ <h2>Definitions of States and Properties (all aria-* attributes)</h2>
1242512425
&lt;li role="option" aria-setsize="16" <strong>aria-posinset="7"</strong>&gt; cantaloupes &lt;/li&gt;
1242612426
&lt;li role="option" aria-setsize="16" <strong>aria-posinset="8"</strong>&gt; dates &lt;/li&gt;
1242712427
&lt;/ul&gt;</pre>
12428-
<p>Authors MUST set the value for<pref>aria-posinset</pref> toan integer greater than or equal to 1, and less than or equal to the size of the set when that size is known.Authors SHOULD use <pref>aria-setsize</pref>.</p>
12429-
<p>Whenexposing <code>aria-posinset</code> on a <rref>menuitem</rref>, <rref>menuitemcheckbox</rref>, or <rref>menuitemradio</rref>, authors SHOULD set the value of <code>aria-posinset</code> with respect to the total number of items in the <rref>menu</rref>, excluding any separators.</p>
12428+
<p>When specifying<pref>aria-posinset</pref>, authors MUST specify a value that isan integer greater than or equal to 1, and less than or equal to the size of the set when that size is known.If authors specify <pref>aria-posinset</pref>, authors MUST also specify a value for <pref>aria-setsize</pref>.</p>
12429+
<p>Whenspecifying <code>aria-posinset</code> on a <rref>menuitem</rref>, <rref>menuitemcheckbox</rref>, or <rref>menuitemradio</rref>, authors SHOULD set the value of <code>aria-posinset</code> with respect to the total number of items in the <rref>menu</rref>, excluding any separators.</p>
1243012430
</div>
1243112431
<table class="property-features">
1243212432
<caption>Characteristics:</caption>
@@ -13061,9 +13061,9 @@ <h2>Definitions of States and Properties (all aria-* attributes)</h2>
1306113061
<div class="property-description">
1306213062
<p>Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the <abbr title="Document Object Model">DOM</abbr>. See related <pref>aria-posinset</pref>.</p>
1306313063
<p>This <a>property</a> is marked on the members of a set, not the container element that collects the members of the set. To orient the user by saying an element is "item X out of Y," the <a>assistive technologies</a> would use X equal to the <pref>aria-posinset</pref> <a>attribute</a> and Y equal to the <code>aria-setsize</code> attribute.</p>
13064-
<p>If all items in a set are present in the document structure, it is not necessary to set thisproperty, as the <a>user agent</a> can automatically calculate theset size andposition foreach item. However, ifonly a portion of the setispresent in the document structure at a given moment (in order to reduce document size),thisproperty is neededto provide an explicit indication ofset size.</p>
13065-
<p>Authors MUST set the value of<code>aria-setsize</code> to an integer equal to the number of items in the set. If the total number of items is unknown, authors SHOULD set the value of <code>aria-setsize</code> to <code>-1</code>.</p>
13066-
<p>Whenexposing <code>aria-setsize</code> on a <rref>menuitem</rref>, <rref>menuitemcheckbox</rref>, or <rref>menuitemradio</rref>, authors SHOULD set the value of <code>aria-setsize</code> based on the total number of items in the <rref>menu</rref>, excluding any separators.</p>
13064+
<p>If all itemsup to the current itemin a set are present in the document structure, it is not necessary to set this<a>attribute</a>, as the <a>user agent</a> can automatically calculate the position forthese items. However, ifall previous items in the setare notpresent in the document structure at a given moment, the author MUST setthis<a>attribute</a>to provide an explicit indication ofan element's position.</p>
13065+
<p>When specifying<code>aria-setsize</code>, authors MUST set the value to an integer equal to the number of items in the set. If the total number of items is unknown, authors SHOULD set the value of <code>aria-setsize</code> to <code>-1</code>.</p>
13066+
<p>Whenspecifying <code>aria-setsize</code> on a <rref>menuitem</rref>, <rref>menuitemcheckbox</rref>, or <rref>menuitemradio</rref>, authors SHOULD set the value of <code>aria-setsize</code> based on the total number of items in the <rref>menu</rref>, excluding any separators.</p>
1306713067
<p>The following example shows items 5 through 8 in a set of 16.</p>
1306813068
<pre class="example highlight">&lt;h2 id="label_fruit"&gt; Available Fruit &lt;/h2&gt;
1306913069
&lt;ul role="listbox" aria-labelledby="label_fruit"&gt;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp