Skip to content

Commit 43b6a45

Browse files
authored
added a label to the combobox listbox example (#1728)
1 parent 51e0073 commit 43b6a45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.html

+2-2
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;

0 commit comments

Comments
 (0)