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
Copy file name to clipboardExpand all lines: index.html
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -9086,6 +9086,12 @@ <h5>Presentational Role Inheritance</h5>
9086
9086
<div class="role-description">
9087
9087
<p>A type of input that allows free-form text as its value.</p>
9088
9088
<p>If the <pref>aria-multiline</pref> <a>attribute</a> is <code>true</code>, the <a>widget</a> accepts line breaks within the input, as in an HTML <code>textarea</code>. Otherwise, this is a simple text box. The intended use is for languages that do not have a text input <a>element</a>, or cases in which an element with different <a>semantics</a> is repurposed as a text field.</p>
9089
+
<p>Authors MUST limit the children of a textbox to non-interactive, entirely presentational elements such as icons used to visually convey information that is already exposed in an accessible manner. Examples include:</p>
9090
+
<ul>
9091
+
<li>an error icon, where the containing textbox has been provided an <sref>aria-invalid</sref>, <sref>aria-errormessage</sref>, or both attributes;</li>
9092
+
<li>an icon of a user silhouette, where the textbox is also visibly labeled or provided an accessible name of "name" or "username"; and</li>
9093
+
<li>a graphical status indicator, such as a gauge to represent characters remaining, which represents dynamically updating text available outside of the textbox.</li>
9094
+
</ul>
9089
9095
<!-- keep the following para synced with its equivalent in #aria-multiline -->
9090
9096
<p class="note">In most user agent implementations, the default behavior of the <kbd>ENTER</kbd> or <kbd>RETURN</kbd> key is different between the single-line and multi-line text fields in HTML. When user has focus in a single-line <code><input type="text"></code> element, the keystroke usually submits the form. When user has focus in a multi-line <code><textarea></code> element, the keystroke inserts a line break. The <abbr title="Accessible Rich Internet Applications">WAI-ARIA</abbr> <code>textbox</code> role differentiates these types of boxes with the <pref>aria-multiline</pref> attribute, so authors are advised to be aware of this distinction when designing the field.</p>
9091
9097
</div>
@@ -9161,11 +9167,11 @@ <h5>Presentational Role Inheritance</h5>
0 commit comments