Skip to content

Commit

Permalink
More updates to 6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahim Abdi committed Feb 17, 2025
1 parent 9eedd0a commit dc94058
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10200,18 +10200,17 @@ <h3>Value</h3>
<section data-cite="webidl">
<h2>ARIA Attributes</h2>
<section id="enumerated-attribute-values">
<h3>Multi-value Attribute Values</h3>
<h3>Enumerated Attribute Values</h3>
<p>When the ARIA attribute definition includes a table listing the attribute's allowed <span>values</span>,
that attribute is a multi-value nullable attribute.
Each value in the table is a keyword for the attribute, mapping to a state of the same name. </p>
it is an [=enumerated attribute=]. Each value in the table is a keyword for the attribute, mapping to a state of the same name and one or more keywords may map to the same state. </p>
</section>
<section id="idl-reflection-attribute-values">
<h3>IDL reflection of ARIA attributes</h3>
<p>ARIA attributes may reflect as several IDL attribute types such as [=nullable type|nullable=] {{DOMString}} attributes, [=nullable type|nullable=] {{FrozenArray}} attributes or [=nullable type|nullable=] {{Element}} attributes.
<p>Default values from the ARIA values tables MUST NOT reflect to IDL as the
<p>For non-enumerated attributes, default values from the ARIA values tables MUST NOT reflect to IDL as the
<a data-cite="html/common-microsyntaxes.html#missing-value-default">missing value default</a> or the
<a data-cite="html/common-microsyntaxes.html#invalid-value-default">invalid value default</a> for the attribute.
On getting, a missing ARIA attribute will return <code>null</code>. ARIA attributes are not validated on get.
On getting (a non-enumerated attribute), a missing ARIA attribute will return <code>null</code> as such ARIA attributes are not validated on get.
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>
</section>
<section id="os-aapi-attribute-mapping">
Expand All @@ -10223,11 +10222,7 @@ <h3>Operating System Accessibility API mapping of multi-value ARIA attributes</h
<section id="enumerated-attribute-values-html">
<h3>ARIA nullable DOMString Attributes</h3>
<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>
<p>The following algorithm should be used for ARIA nullable {{DOMString}} attributes in HTML:</p>
<p>On getting, if the corresponding content attribute is not present, then the IDL attribute must return null,
otherwise, the IDL attribute must get the value in a transparent, case-preserving manner.
On setting, if the new value is null, the content attribute must be removed, and otherwise,
the content attribute must be set to the specified new value in a transparent, case-preserving manner.</p>
<p>ARIA attributes [=reflect=] in IDL as defined in HTML.</p>
<section class="informative" id="enumeration-example">
<h4>Example Attribute Usage</h4>
<aside class="example">
Expand Down

0 comments on commit dc94058

Please sign in to comment.