GitHub

@@ -435,10 +435,11 @@ <h4>Computation steps</h4>

435435

</li>

436436

</ol>

437437

<aside class="example">

438-

<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>

439-

<pre class="highlight">

440-

<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>

441-

</pre>

438+

<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>

439+

<pre class="highlight"><code>&lt;label for="flash"&gt;

440+

&lt;input type="checkbox" id="flash"&gt;

441+

Flash the screen &lt;span tabindex="0" role="textbox" aria-label="number of times" contenteditable&gt;5&lt;/span&gt; times.

442+

&lt;/label&gt;</code></pre>

442443

</aside>

443444

</li>

444445

<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:

Read the original on github.com ↗