Skip to content

Commit

Permalink
added a label to the combobox listbox example (#1728)
Browse files Browse the repository at this point in the history
  • Loading branch information
jongund authored and jnurthen committed Oct 10, 2023
1 parent 2aa861f commit c2adaeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2342,12 +2342,12 @@ <h2>Definition of Roles</h2>
<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>
</ul>
<pre class="example highlight">
&lt;label for="tag_combo">Tag&lt;/label>
&lt;label id="tag_label" for="tag_combo">Tag&lt;/label>
&lt;input type="text" id="tag_combo"
role="combobox" aria-autocomplete="list"
aria-haspopup="listbox" aria-expanded="true"
aria-controls="popup_listbox" aria-activedescendant="selected_option"&gt;
&lt;ul role="listbox" id="popup_listbox"&gt;
&lt;ul role="listbox" id="popup_listbox" aria-labelledby="tag_label"&gt;
&lt;li role="option"&gt;Zebra&lt;/li&gt;
&lt;li role="option" id="selected_option"&gt;Zoom&lt;/li&gt;
&lt;/ul&gt;
Expand Down

0 comments on commit c2adaeb

Please sign in to comment.