GitHub

Original file line numberDiff line numberDiff line change

@@ -2332,12 +2332,12 @@ <h2>Definition of Roles</h2>

23322332

<li>Otherwise, the value of the <code>combobox</code> is represented by its descendant elements and can be determined using the same method used to compute the name of a <rref>button</rref> from its descendant content.</li>

23332333

</ul>

23342334

<pre class="example highlight">

2335-

&lt;label for="tag_combo">Tag&lt;/label>

2335+

&lt;label id="tag_label" for="tag_combo">Tag&lt;/label>

23362336

&lt;input type="text" id="tag_combo"

23372337

role="combobox" aria-autocomplete="list"

23382338

aria-haspopup="listbox" aria-expanded="true"

23392339

aria-controls="popup_listbox" aria-activedescendant="selected_option"&gt;

2340-

&lt;ul role="listbox" id="popup_listbox"&gt;

2340+

&lt;ul role="listbox" id="popup_listbox" aria-labelledby="tag_label"&gt;

23412341

&lt;li role="option"&gt;Zebra&lt;/li&gt;

23422342

&lt;li role="option" id="selected_option"&gt;Zoom&lt;/li&gt;

23432343

&lt;/ul&gt;

Read the original on github.com ↗