You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
<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>
12430
12430
</div>
12431
12431
<table class="property-features">
12432
12432
<caption>Characteristics:</caption>
@@ -13061,9 +13061,9 @@ <h2>Definitions of States and Properties (all aria-* attributes)</h2>
13061
13061
<div class="property-description">
13062
13062
<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>
13063
13063
<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>
13067
13067
<p>The following example shows items 5 through 8 in a set of 16.</p>
13068
13068
<pre class="example highlight"><h2 id="label_fruit"> Available Fruit </h2>