Skip to content

Commit

Permalink
update accname 'flash screen' example to use native HTML inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
cookiecrook committed Oct 6, 2023
1 parent 2cb4692 commit 555d4b8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -440,10 +440,11 @@ <h4>Computation steps</h4>
</ol>
<div>
<summary>Example:</summary>
<p>Consider a <a class="role-reference" href="#checkbox">check box</a> label that contains a text input field: "Flash the screen [input] times". If the user has entered "5" for the embedded <a class="role-reference" href="#textbox">textbox</a>, the complete label is "Flash the screen 5 times", e.g.: </p>
<pre class="example highlight">
<code>&lt;div role="checkbox" aria-checked="false"&gt;Flash the screen &lt;span role="textbox" aria-multiline="false"&gt; 5 &lt;/span&gt; times&lt;/div&gt;</code>
</pre>
<p>Consider a <a class="role-reference" href="#checkbox">check box</a> label that contains a text input field: "Flash the screen [input] times". If the input field has the value "5", the complete label is "Flash the screen 5 times", e.g.:</p>
<pre class="example highlight"><code>&lt;label for="flash"&gt;
&lt;input type="checkbox" id="flash"&gt;
Flash the screen &lt;input type="text" value="5" aria-label="number of times"&gt; times.
&lt;/label&gt;</code></pre>
</div>
</li>
<li id="comp_label" name="step2D"><em>AriaLabel:</em> Otherwise, if the <code>current node</code> has an <code>aria-label</code> [=attribute=] whose value is not undefined, not the empty string, nor, when trimmed of [=ascii whitespace|whitespace=], is not the empty string:
Expand Down

0 comments on commit 555d4b8

Please sign in to comment.