From c2adaeb3909ee3b41872ee89c723aad142fcc4b2 Mon Sep 17 00:00:00 2001 From: Jon Gunderson Date: Fri, 29 Apr 2022 01:57:09 -0500 Subject: [PATCH] added a label to the combobox listbox example (#1728) --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 265a12389..8d5560702 100644 --- a/index.html +++ b/index.html @@ -2342,12 +2342,12 @@

Definition of Roles

  • Otherwise, the value of the combobox is represented by its descendant elements and can be determined using the same method used to compute the name of a button from its descendant content.
  • -          <label for="tag_combo">Tag</label>
    +          <label id="tag_label" for="tag_combo">Tag</label>
     		      <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">
    -				  <ul role="listbox" id="popup_listbox">
    +				  <ul role="listbox" id="popup_listbox" aria-labelledby="tag_label">
     			      <li role="option">Zebra</li>
     			      <li role="option" id="selected_option">Zoom</li>
     				  </ul>