-
Notifications
You must be signed in to change notification settings - Fork 27
hgroup element mapping update #398
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
Conversation
Related to whatwg/html#7829. Assuming this PR lands, an `hgroup` will only allow a single heading and paragraph elements (and script-supporting elements, but that's not relevant here) to represent sub-heading information. However, as there are _lots_ of instances of `hgroup` in the wild where multiple headings are used - as this was allowed prior to the HTML PR, these will become invalid markup patterns, and indicating that the headings of lower level be treated as `p` elements will at least mitigate for this change. For additional discussion: - should `hgroup` be exposed as a 'heading group' or even just a 'group' to define the boundaries of where the hgroup content starts/stops - should `p` elements or errant extra `h#` elements be exposed as 'sub headings'. `doc-subtitle` could potentially be used - though I'm not sure if that is actually appropriate, as we _don't_ want the subheadings to be exposed as 'headings' as some of the mappings for `doc-subtitle` would seem to indicate might be the result of mapping to this role. This could potentially be related to what dpub ARIA roles should be brought back into ARIA proper - e.g., `role=subheading` this effectively resolves #123 this may well help resolving w3c/aria-practices#1157
marked as not ready for merge until discussion topics are covered and continued work on the associated html issue |
Resolution from today's call - don't do anything regarding |
@jnurthen shall we talk about this again now that the updated heading outline has landed in HTML? |
@jnurthen, spoke to @stevefaulkner this morning. agreed that, especially in lieu of updating the mapping for Extra (now) invalid headings within the hgroup just need to be decided upon. If they remain headings, or if they get remapped. |
@scottaohara @jnurthen thinking more about mapping, wondering if it is worthwhile having a specific mapping for |
The ARIA Working Group just discussed The full IRC log of that discussion |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updates coming out of WG discussion from today
don't need to call this out in this spec.
merging per bugs for this change being filed and no objections to this change from the wg. |
See HTML-AAM changes: w3c/html-aam#398 Bug: 1422741 Change-Id: I3e19d675c1ba2c3fae18851ffb9715af4213237b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4329037 Auto-Submit: Ahmed ElwasefiCommit-Queue: Aaron Leventhal Reviewed-by: Aaron Leventhal Cr-Commit-Position: refs/heads/main@{#1117678}
Related to whatwg/html#7829.
hgroup
was revised to no longer have any expectation of multiple headings as nested children. This PR simply revises the mapping ofhgroup
from a generic to arole=group
. This mapping change is done to indicate this element represents a group of related content, and to allow authors to name this group without the need of a specific ARIA attribute.Previous discussion about revising the roles of errant headings, beyond the first valid instance, have been put on hold for now, and are not part of this PR.
this resolves #123
this may well help resolving w3c/aria-practices#1157
Implementation bugs filed:
Preview | Diff