-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Making p
in hgroup
align with the html specification
#501
Comments
these topics were discussed in #398 where the mapping was discussed and changed. doc-subtitle is essentially exposed as a type of heading. p within hgroup is not meant to be exposed as a heading. it's a bit complicated, but one reason why that thread was dropped when the hgroup mapping was updated. i'm not sure what guidance you're referring to where it is being advised against being used? is that guidance legacy - e.g., before the purpose of hgroup and the document outline in html were significantly altered? or is this newer guidance against use - in which case what was the rational? I'm moving this over to HTML AAM, as that's the specification where element mappings are defined - which seems to be what this is proposing. ARIA in HTML defines how ARIA can be used in HTML, which does not seem to be what this issue is about. |
Thanks for consideration and the quick reply!
Interaction with the outline … I was unaware of this part. Because it inherits from To hopefully help avoiding talking past each other: To me outlines work like in the HTML specification and subheadings while still being part of the heading don't affect them (or only as some kind of annotation depending on the user agent) which explained to me why the
Its more of a rumor that I tried to "investigate" and have at least some knowledge of the specification before saying anything on the matter.
I placed it there because it contains the "Rules of ARIA attribute usage by HTML element ", I guess (with hindsight) it only contains derived Information? |
i'm not really sure i understand everything you were trying to say there, but maybe this will cover it:
re: hgroup usage, your response that there is a 'rumor' still doesn't help clarify the 'why' behind why to use or not. But one reason it was advised not to use in the past is because i didn't do anything the HTML spec said it should (in regards to accessibility). It was no different than using a div. Now, with it's remapping to a group role - in many cases it still will have minimal value UNLESS it's given an accessible name, in which it will then consistently be exposed as a group (with whatever name it was given). The value of doing that can be variable / contingent on the use case. Re: ARIA in HTML - just to be absolutely clear - that spec is only about using explicit ARIA attributes on different HTML elements. Anything concerning the implicit accessible information an HTML feature has (or hasn't) belongs in this spec... and then updates made here might require an update to how ARIA can be used on HTML features in that spec. But yah, that's a high level of the relationship between the specs. |
Call me confused, but those implementations don't match the intention of the specification if I'm reading this (and the specification) correctly. |
recalling is one thing, pointing directly to the mappings that validate implementation are another - https://www.w3.org/TR/dpub-aam-1.1/#role-map-subtitle but to close this loop - the potential for modifying the role of the So while the mapping of doc-subtitle might not make sense for how one might want to use it in HTML - I can only assume it does make sense in the context of dpub. And if that's actually odd over there, well, that's an issue for dpub ARIA / AAM to resolve. With that I think this issue has run its course. Appreciate you filing it and I hope my answers have been helpful in providing context. But without further changes to the dpub role mapping, and more importantly users indicating they actually want/need this role to be exposed in web pages, there's nothing to really do at this point without evidence to change the previous decision to not modify the |
They have been, thank you for taking the time to explain to someone who only has done part of their homework! |
What would change: any
p
element inside anhgroup
element should default to adoc-subtitle
(dpub-aria) role.Why?
Both have very similar intention:
The
p
inhgroup
construct in the html specification:The
doc-subtitle
is defined as:The descriptions overlap in
Both also give similar examples on how they are supposed to be used (with the difference being that the
doc-subtitle
one uses aheader
element instead of anhgroup
).Why this proposal?
The benefit of this additional rule would be a clean way to mark up subheading and similar constructs matching the descriptions in plain html without having to resort to setting aria roles "by hand" with the mess-up potential that comes with it.
This is a naive proposal that is probably lacking some insight in other parts of aria, this is something I stumbled across while trying to figure out why
hgroup
was advised against by some. Feel free to correct me where I'm wrong.The text was updated successfully, but these errors were encountered: