GitHub

@@ -11467,10 +11467,10 @@ <h2>Definitions of States and Properties (all aria-* attributes)</h2>

1146711467

<div class="property" id="aria-errormessage">

1146811468

<pdef>aria-errormessage</pdef>

1146911469

<div class="property-description">

11470-

<p><a>Identifies</a> the <a>element</a> that provides an error message for an <a>object</a>. See related <sref>aria-invalid</sref> and <pref>aria-describedby</pref>.</p>

11471-

<p>The <code>aria-errormessage</code> attribute references another element that contains error message text. Authors MUST use <sref>aria-invalid</sref> in conjunction with <code>aria-errormessage</code>.</p>

11472-

<p>When the value of an object is not valid, <sref>aria-invalid</sref> is set to <code>true</code>, which indicates that the message contained by an element referenced by <code>aria-errormessage</code> is pertinent.</p>

11473-

<p>When an object is in a valid state, it has either <sref>aria-invalid</sref> set to <code>false</code> or it does not have the <sref>aria-invalid</sref> attribute. Authors MAY use <code>aria-errormessage</code> on an object that is currently valid, but only if the element referenced by <code>aria-errormessage</code> is [=element/hidden=], because the message it contains is not pertinent.</p>

11470+

<p><a>Identifies</a> the <a>element</a> (or elements) that provides an error message for an <a>object</a>. See related <sref>aria-invalid</sref> and <pref>aria-describedby</pref>.</p>

11471+

<p>The <code>aria-errormessage</code> attribute references other elements that contain error message text. Authors MUST use <sref>aria-invalid</sref> in conjunction with <code>aria-errormessage</code>.</p>

11472+

<p>When the value of an object is not valid, <sref>aria-invalid</sref> is set to <code>true</code>, which indicates that the message contained by elements referenced by <code>aria-errormessage</code> is pertinent.</p>

11473+

<p>When an object is in a valid state, it has either <sref>aria-invalid</sref> set to <code>false</code> or it does not have the <sref>aria-invalid</sref> attribute. Authors MAY use <code>aria-errormessage</code> on an object that is currently valid, but only if the elements referenced by <code>aria-errormessage</code> are [=element/hidden=], because the message they contain is not pertinent.</p>

1147411474

<p>When <code>aria-errormessage</code> is pertinent, authors MUST ensure the content is not hidden so users can navigate to and examine the error message. Similarly, when <code>aria-errormessage</code> is not pertinent, authors MUST either ensure the content is [=element/hidden=] or remove the <code>aria-errormessage</code> attribute or its value.</p>

1147511475

<p>User agents MUST NOT expose <code>aria-errormessage</code> for an object with an <sref>aria-invalid</sref> value of <code>false</code>.</p>

1147611476

<p>Authors MAY call attention to a newly rendered error message with a live region by either applying an <pref>aria-live</pref> property or using one of the <a href="#live_region_roles">live region roles</a>, such as <rref>alert</rref>. A live region is appropriate when an error message is displayed to users after they have provided an invalid value.</p>

@@ -11508,7 +11508,7 @@ <h2>Definitions of States and Properties (all aria-* attributes)</h2>

1150811508

</tr>

1150911509

<tr>

1151011510

<th class="property-value-head" scope="row">Value:</th>

11511-

<td class="property-value"><a href="#valuetype_idref">ID reference</a></td>

11511+

<td class="property-value"><a href="#valuetype_idref_list">ID reference list</a></td>

1151211512

</tr>

1151311513

</tbody>

1151411514

</table>

@@ -13631,7 +13631,7 @@ <h2>Interface Mixin <dfn>ARIAMixin</dfn></h2>

1363113631

[CEReactions] attribute DOMString? ariaDescription;

1363213632

[CEReactions] attribute FrozenArray&lt;Element&gt;? ariaDetailsElements;

1363313633

[CEReactions] attribute DOMString? ariaDisabled;

13634-

[CEReactions] attribute Element? ariaErrorMessageElement;

13634+

[CEReactions] attribute FrozenArray&lt;Element&gt;? ariaErrorMessageElements;

1363513635

[CEReactions] attribute DOMString? ariaExpanded;

1363613636

[CEReactions] attribute FrozenArray&lt;Element&gt;? ariaFlowToElements;

1363713637

[CEReactions] attribute DOMString? ariaHasPopup;

@@ -13716,7 +13716,7 @@ <h2>ARIA Attribute Correspondence</h2>

1371613716

<tr><td><dfn>ariaDescription</dfn></td><td><pref>aria-description</pref></td></tr>

1371713717

<tr><td><dfn>ariaDetailsElements</dfn></td><td><pref>aria-details</pref></td></tr>

1371813718

<tr><td><dfn>ariaDisabled</dfn></td><td><sref>aria-disabled</sref></td></tr>

13719-

<tr><td><dfn>ariaErrorMessageElement</dfn></td><td><pref>aria-errormessage</pref></td></tr>

13719+

<tr><td><dfn>ariaErrorMessageElements</dfn></td><td><pref>aria-errormessage</pref></td></tr>

1372013720

<tr><td><dfn>ariaExpanded</dfn></td><td><sref>aria-expanded</sref></td></tr>

1372113721

<tr><td><dfn>ariaFlowToElements</dfn></td><td><pref>aria-flowto</pref></td></tr>

1372213722

<tr><td><dfn>ariaHasPopup</dfn></td><td><pref>aria-haspopup</pref></td></tr>

Read the original on github.com ↗