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>In certain conditions, a user agent MAY provide an implicit value for <sref>aria-selected</sref> for each <rref>option</rref> in a <rref>listbox</rref>, and if it does, the user agent MUST ensure the following conditions are met before providing an implicit value:</p>
6014
6014
<ul>
6015
6015
<li>The value of <pref>aria-multiselectable</pref> on the <rref>listbox</rref> is <code>false</code> or <code>undefined</code>.</li>
6016
-
<li>None of the <rref>option</rref> elements in the <rref>listbox</rref> have an explicitly declared value for <sref>aria-selected</sref> or <sref>aria-checked</sref>.</li>
6016
+
<li>None of the <rref>option</rref> elements in the <rref>listbox</rref> have an explicitly declared value for <sref>aria-selected</sref> or <sref>aria-checked</sref>.</li>
6017
6017
</ul>
6018
6018
<p>
6019
6019
If a user agent provides an implicit <sref>aria-selected</sref> value for an <rref>option</rref>, the value SHOULD be <code>true</code> if the <rref>option</rref> has DOM focus or the <rref>listbox</rref> has DOM focus and the <rref>option</rref> is referenced by <pref>aria-activedescendant</pref>.
<p>In certain conditions, a user agent MAY provide an implicit value for <sref>aria-selected</sref> for each <rref>tab</rref> in a <rref>tablist</rref>, and if it does, the user agent MUST ensure the following conditions are met before providing an implicit value:</p>
8705
8705
<ul>
8706
8706
<li>The value of <pref>aria-multiselectable</pref> on the <rref>tablist</rref> is <code>false</code> or <code>undefined</code>.</li>
8707
-
<li>None of the <rref>tab</rref> elements in the <rref>tablist</rref> have an explicitly declared value for <sref>aria-selected</sref> or <sref>aria-expanded</sref>.</li>
8707
+
<li>None of the <rref>tab</rref> elements in the <rref>tablist</rref> have an explicitly declared value for <sref>aria-selected</sref> or <sref>aria-expanded</sref>.</li>
<p>In certain conditions, a user agent MAY provide an implicit value for <sref>aria-selected</sref> for each <rref>treeitem</rref> in a <rref>tree</rref>, and if it does, the user agent MUST ensure the following conditions are met before providing an implicit value:</p>
9918
9918
<ul>
9919
9919
<li>The value of <pref>aria-multiselectable</pref> on the <rref>tree</rref> is <code>false</code> or <code>undefined</code>.</li>
9920
-
<li>None of the <rref>treeitem</rref> elements in the <rref>tree</rref> have an explicitly declared value for <sref>aria-selected</sref> or <sref>aria-checked</sref>.</li>
9920
+
<li>None of the <rref>treeitem</rref> elements in the <rref>tree</rref> have an explicitly declared value for <sref>aria-selected</sref> or <sref>aria-checked</sref>.</li>
9921
9921
</ul>
9922
9922
<p>
9923
9923
If a user agent provides an implicit <sref>aria-selected</sref> value for a <rref>treeitem</rref>, the value SHOULD be <code>true</code> if the <rref>treeitem</rref> has DOM focus or the <rref>tree</rref> has DOM focus and the <rref>treeitem</rref> is referenced by <pref>aria-activedescendant</pref>.
@@ -10228,33 +10228,33 @@ <h3>Value</h3>
10228
10228
<h2>ARIA Attributes</h2>
10229
10229
<section id="enumerated-attribute-values">
10230
10230
<h3>Multi-value Attribute Values</h3>
10231
-
<p>When the ARIA attribute definition includes a table listing the attribute's allowed <span>values</span>,
10232
-
that attribute is a multi-value nullable attribute.
10231
+
<p>When the ARIA attribute definition includes a table listing the attribute's allowed <span>values</span>,
10232
+
that attribute is a multi-value nullable attribute.
10233
10233
Each value in the table is a keyword for the attribute, mapping to a state of the same name. </p>
10234
10234
</section>
10235
10235
<section id="idl-reflection-attribute-values">
10236
10236
<h3>IDL reflection of ARIA attributes</h3>
10237
-
<p>All ARIA attributes reflect in IDL as [=nullable type|nullable=] {{DOMString}} attributes.
10237
+
<p>All ARIA attributes reflect in IDL as [=nullable type|nullable=] {{DOMString}} attributes.
10238
10238
This includes the boolean-like <a href="#valuetype_true-false">true/false</a> type, and all other ARIA attributes.</p>
10239
-
<p>Default values from the ARIA values tables MUST NOT reflect to IDL as the
10240
-
<a data-cite="html/common-microsyntaxes.html#missing-value-default">missing value default</a> or the
10241
-
<a data-cite="html/common-microsyntaxes.html#invalid-value-default">invalid value default</a> for the attribute.
10242
-
On getting, a missing ARIA attribute will return <code>null</code>. ARIA attributes are not validated on get.
10239
+
<p>Default values from the ARIA values tables MUST NOT reflect to IDL as the
10240
+
<a data-cite="html/common-microsyntaxes.html#missing-value-default">missing value default</a> or the
10241
+
<a data-cite="html/common-microsyntaxes.html#invalid-value-default">invalid value default</a> for the attribute.
10242
+
On getting, a missing ARIA attribute will return <code>null</code>. ARIA attributes are not validated on get.
10243
10243
If an ARIA value is invalid, on getting, it will return its set value as a literal string, and will not return an invalid value default.</p>
10244
10244
</section>
10245
10245
<section id="os-aapi-attribute-mapping">
10246
10246
<h3>Operating System Accessibility API mapping of multi-value ARIA attributes</h3>
10247
-
<p>Unlike IDL reflection, operating system accessibility API mappings of ARIA attributes can have defaults.
10248
-
Any default values from the ARIA values tables are exposed to the operating system accessibility API as described in
10247
+
<p>Unlike IDL reflection, operating system accessibility API mappings of ARIA attributes can have defaults.
10248
+
Any default values from the ARIA values tables are exposed to the operating system accessibility API as described in
10249
10249
[[[#supportedState]]], and in [[[CORE-AAM]]].</p>
10250
10250
</section>
10251
10251
<section id="enumerated-attribute-values-html">
10252
10252
<h3>ARIA nullable DOMString Attributes</h3>
10253
10253
<p>As noted in [[[#typemapping]]], attributes are included in host languages, and the syntax for representation of WAI-ARIA types is governed by the host language.</p>
10254
10254
<p>The following algorithm should be used for ARIA nullable {{DOMString}} attributes in HTML:</p>
10255
-
<p>On getting, if the corresponding content attribute is not present, then the IDL attribute must return null,
10256
-
otherwise, the IDL attribute must get the value in a transparent, case-preserving manner.
10257
-
On setting, if the new value is null, the content attribute must be removed, and otherwise,
10255
+
<p>On getting, if the corresponding content attribute is not present, then the IDL attribute must return null,
10256
+
otherwise, the IDL attribute must get the value in a transparent, case-preserving manner.
10257
+
On setting, if the new value is null, the content attribute must be removed, and otherwise,
10258
10258
the content attribute must be set to the specified new value in a transparent, case-preserving manner.</p>
10259
10259
<p class="note">
10260
10260
Note: As of ARIA 1.2, all ARIA attributes exposed via IDL are defined as nullable {{DOMStrings}}. This matches the current implementation of all major rendering engines. This specification change should result in no implementation changes; it will merely represent the current reality of web engines.
0 commit comments