Comments (4)
While something like this would impact the accname spec it would fit in aria not accname. Any proposals which need new attributes would be better logged in the aria repository.
However, I think we are unlikely to go down this path as it would add more complexity to something that is already complex enough.
That being said we are looking at a few other possibilities for labeling. The current editors draft has 2 new ways of labeling a limited number of roles - see http://w3c.github.io/aria/#namecalculation and look for encapsulation and legend. Note that (a) this is not applicable across all roles and (b) it is not implemented anywhere yet.
from accname.
I'm reading that as:
- a direct descendant with
role=label
does the equivalent ofaria-labelledby
- a direct descendant with
role=legend
does the equivalent ofaria-describedby
And hence I could write
<article>
<div role=label><h2>Name of article</h2></div>
<div role=legend>Description of article</div>
stuff
</article>
instead of
<article aria-labelledby=label aria-describedby=legend>
<div id=label><h2>Name of article</h2></div>
<div id=legend>Description of article</div>
stuff
</article>
Is that correct? If so, that would certainly be good enough for me and I look forward to years of grousing about how no one supports it yet.
from accname.
@jimmyfrasche No. This will only be allowed for certain roles which support these. Generally label will only work for widgets (like in HTML LABEL) and Legend for groups (like HTML fieldset).
There is also a proposal to allow a descendent Header to label something but it isn't advanced. See https://github.com/w3c/aria/issues/899 for more details although the minutes of the F2F meeting this week aren't yet in the issue.
from accname.
That's too bad. This only really presents an issue for stuff like article
. Coming up with id's for forms isn't as fraught. It looks like the linked issue is the best place to discuss this further. Thank you for your time and help.
from accname.
Related Issues (20)
- Examples missing content HOT 6
- Getting the value: action steps
- Update "host name language" references with links.
- Seeking clarity on name property with `div` HOT 5
- AccName algo probably needs an update for ::marker HOT 6
- AccName term "CSS textual content" for pseudo elements is undefined/ambiguous HOT 1
- AccName forces whitespace joiners between all inline element scenarios HOT 5
- Update old after/before pseudo-element reference link in section 4.3.2 F HOT 1
- Interior whitespace questions in this AccName text node test HOT 12
- Ambiguity in AccName LabelledBy section: "[if] current node is not already 'part of' [sic]…traversal" HOT 19
- Task: verify review feedback from PR 150 made it in
- Ambiguous but normative requirement about hidden nodes is hidden by default in AccName HOT 6
- Clarifying "text node" definition (step 2G) HOT 1
- `name` not allowed on a `li` element HOT 16
- `Summary` not allowed as child of `div`
- Editorial: Remove all the collapsed content in accname
- accname can reference generic with label in a labelledby comp, but is underspecified HOT 3
- ARIA/AccName Conflict: aria-label allowed on generic in a traversal, but labelling a generic is an author error due to "name prohibited" HOT 2
- LabelledBy Recursion is not actually recursive, so it should be renamed. HOT 1
- AccName stable branch is now severely outdated. Is there anything editors recommend keeping? HOT 4
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 accname.