Code Monkey home page Code Monkey logo

Comments (4)

eps1lon avatar eps1lon commented on May 29, 2024 1

It does now include listbox:

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

But the point remains about aria-multiselectable. I guess

- [...] return the text alternative of the chosen option.
+ [...] return the text alternative of the selected options.

Would be sufficient and make it more obvious what "chosen" means by using the same terminology (selected and aria-selected).

from accname.

mcking65 avatar mcking65 commented on May 29, 2024

I agree with this change. However, it raises a related question ... does step 2E correctly address combobox in all its possible states? What if a combobox has a value in its textbox and that does not correspond to a value in its associated listbox? What if the combobox does not have a listbox?

from accname.

accdc avatar accdc commented on May 29, 2024

Hi Matt,
The executable AccName prototype already supports all of the supported children of role=combobox, including Listbox, Grid, and Tree, such as the following tests:

<input type="text" id="test" />
  <label for="test">Flash the screen 
    <div role="combobox">
      <div role="textbox"></div>
            <div role="grid">
      <ul role="row" style="list-style-type: none;">
        <li role="gridcell" aria-selected="true">1</li>
   	<li role="gridcell">2</li>
   	<li role="gridcell">3</li>
      </ul>
    </div>
    </div>
    times.
  </label>

And


<input type="text" id="test" />
  <label for="test">Flash the screen 
    <div role="combobox">
      <div role="textbox"></div>
      <ul role="tree" style="list-style-type: none;">
        <li role="treeitem" aria-selected="true">1</li>
   	<li role="treeitem">2</li>
   	<li role="treeitem">3</li>
      </ul>
    </div>
    times.
  </label>

All of which are treated as widgets that support explicit values in accordance with the aria-selected model for selectable children.

I'm not sure if these are clearly conveyed in the spec though.

An ARIA Combobox only has a value when one of it's supported children like those above have aria-selected="true", or if the embedded textbox has a value (whether element.value if a native edit field or name from content if a simulated role=textbox), but if it has no value then nothing is returned as the value.

This is how I coded it into the AccName Prototype, but if others have a different interpretation of this, please let me know.

from accname.

joanmarie avatar joanmarie commented on May 29, 2024

Another thing which we need to address: What about multi-select listboxes which multiple items selected?

(Sorry for not thinking about this until now. It's an argument for seeking/doing implementations early on in the process as per our new work flow.)

from accname.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.