AccName Pull Request 13: Please review

Hey all.

As part of the testing being done for AccName, we discovered that
listbox was not being treated the same as combobox in step 2E. As a
result, the expected name for the checkbox below is "Flash the screen
times."

  <input type="checkbox" id="test" />
  <label for="test">Flash the screen
    <ul role="listbox" style="list-style-type: none;">
      <li role="option" aria-selected="true">1</li>
      <li role="option">2</li>
      <li role="option">3</li>
    </ul>
    times.
  </label>

But if the above listbox were placed inside of a combobox, then the
result would be "Flash the screen 1 times." This is covered by step 2E
of AccName which states:

    If the embedded control has role combobox, return the text
    alternative of the chosen option.

Do we really think that the results should be different in this case?
The impression I get from some recent discussions is "no they
shouldn't." In which case we should treat listbox like combobox in step
2E. I've created a pull request to make that change here:
https://github.com/w3c/accname/pull/13

If you want to view the spec with the change, it can be found here:
https://rawgit.com/w3c/accname/issue-12/

The proposed language is:

    If the embedded control has role combobox or listbox, return the
    text alternative of the chosen option.

Feedback via list or github is appreciated because we won't have time at
this week's meeting to discuss it.

Thanks in advance!
--joanie

Received on Tuesday, 10 April 2018 19:17:56 UTC