GithubHelp home page GithubHelp logo

Comments (6)

break-stuff avatar break-stuff commented on June 13, 2024 1

After doing some digging, it looks like in Safari it is a bug on their end. The element is not properly referencing the label.

from axe-core.

straker avatar straker commented on June 13, 2024

Thanks for the issue. I'm not sure the ElementInternals are working correctly for screen readers. Here's how different screen readers and browsers read the input when focused:

  • VoiceOver / Safari - "Edit text, blank"
  • JAWS / Chrome - "My Input, edit, type of text"
  • NVDA / Firefox - "Edit has autocomplete, blank"

Checking the internals.labels property and the label is indeed associated with the element according to the API, but it appears that screen readers haven't caught up to this approach yet. As such I think it is correct that axe-core fails these.

from axe-core.

break-stuff avatar break-stuff commented on June 13, 2024

Oh, interesting. VoiceOver on Chrome and Firefox are working for me - "Edit text, blank, My Input, group".
MS Narrator also appears to read it.

from axe-core.

break-stuff avatar break-stuff commented on June 13, 2024

I went ahead and filed bugs for both NVDA and Apple about the above issues.

from axe-core.

WilcoFiers avatar WilcoFiers commented on June 13, 2024

I think we're going to need to figure out a way to detect this and report a separate issue for it. Missing for labels is a big problem, I wouldn't want to pass this, but it would be useful if we explicitly stated this technique isn't broadly supported yet.

from axe-core.

mrazzari avatar mrazzari commented on June 13, 2024

Oh, interesting. VoiceOver on Chrome and Firefox are working for me - "Edit text, blank, My Input, group". MS Narrator also appears to read it.

The VO + Chrome implementation isn't great either.

  • The "group" in your test is a smell. Only actual groups, like a fieldset, should be announced as groups.
  • Using arrow navigation (VO + Right Arrow) each field results in 3 stops:
    1. My input, group.
    2. Text edit, empty.
    3. End of, My input, group
    • Compare with a regular form field which is just 1 stop: My input, text edit.
  • If we disable grouping then the control name is not announced when using arrow navigation.

Other tests:

  • Narrator + Chrome: no label announced.
  • Narrator + Edge: like VO, announces the label OK, but also "group".

Seems like major red flags on poor or inconsistent support for this feature.

from axe-core.

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.