Comments (6)
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.
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.
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.
I went ahead and filed bugs for both NVDA and Apple about the above issues.
from axe-core.
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.
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:
- My input, group.
- Text edit, empty.
- 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)
- aria-allowed-attr should incomplete attributes with a falsey value
- Runtime issue: Result for unknown rule. You may be running mismatch axe-core versions HOT 2
- `<slot>` with `display: inline-block` causes color-contrast to be incomplete HOT 2
- False positive: scrollable-region-focusable: Elements with scrollable content must be accessible by keyboard. HOT 3
- Disable axe-linter for one line? HOT 3
- False failure: button with role of combobox fails for missing discernible text HOT 1
- Critical error of alt attribute not present is thrown even if image is wrapped inside `<figure>` element and a caption is provided in `<figcaption>` element. HOT 1
- Skip link is not detected in Keyboard IGT HOT 2
- "More Options" tooltip covers "Start Run" button HOT 1
- Possible incorrect results for `Values assigned to role="" are not valid ARIA roles.` ARIA check in Lighthouse audit HOT 8
- aria-required-attr should consider fallback values HOT 1
- axe DevTools Linter Accessibility HOT 2
- Generate an all-rules.csv file HOT 1
- Using `all-lang` option for build doesn't work
- Is there a way to detect non-accessible interactive elements on a webpage? HOT 1
- With linting, how to handle custom React object that could be transcribed into various HTML elements HOT 1
- autocomplete-valid (SC 1.3.5) triggers error for autocomplete="text" HOT 2
- `artifact@v3` actions use deprecated version of `Node.js`
- Contrast Check: Possible False Positive HOT 2
- "Certain ARIA roles must contain particular children" is inconsistent with its guidance HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from axe-core.