-
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
Suggest <aside> should map to complementary with restrictions #86
Comments
It would be interesting to know how many of the 1376 files contain just one or two It's likely that the examples you noted significantly skew that average, giving rise to the possibility that most files use the Unlike the |
I'm fully aware that I might be wrong but doesn't |
I have similar concerns to @LJWatson. In my experience, I have not encountered an overabundance of aside elements; it is nothing like the section problem we once had. It may be best to continue addressing this in the authoring realm rather than with a change to mappings. |
Here are some numbers: Of 8369 pages found using the aside element.
lots more detail: aside element usage in the wild |
Conversely, 76.8% have 3 or less instances of the Either way, as @jameswillweb suggests, the So if the mapping of
|
will update spec and file bugs on browsers |
Since the HTML spec describes several uses of My expectation as an author would be that a non- I don’t know what the element usage data looks like today and the links in this thread to data from 2017 have rotted, but I do know that any site using @discourse (which includes the WICG) has unusable landmark navigation right now in part because that software wraps every quote in an @stevefaulkner, are you still planning to make this change? Is there any timeline? |
picking up where this issue left off, this recent axe-core issue (from a long web a11y slack thread), and today's ARIA #1396 I am largely in favor of Jason's proposal from above...
caveats being that I could well see Regarding the thoughts about mapping
too many things mentioned in there that would not be appropriate for a
while |
That web a11y Slack link requires a login so I can’t review that discussion for comment. I will be satisfied with any change here to get non-body, non-main |
yeh, sorry @csnover. the slack link is only useful if you can get to it...but figured that was better than nothing. i may try to recreate it in a 49 post response thread... but essentially the gist was confusion over when/where an <main>
<article></article>
<aside></aside>
</main> |
I guess we need to discuss whether asides not in the scope of body or main should have "No corresponding role", or role="note", or role="group". It may come down to quibbling over the difference between "complementary", "tangential" and "parenthetic or ancillary". 😂 |
well if we're using the HTML spec as the reference point as to why aside shouldn't always map to complementary, then yes, same applies to a note. a side navigation isn't a "note", nor is an advertisement. arguably a pull quote is....if not really just a blockquote...but eh.... |
Good points, all.
|
i recall matt king being none too happy with an abundance of "groups" being announced in some past discussion, though i don't recall the specifics of that discussion. i tend to agree with him on the sentiment though. Also, as far as i'm concerned, i don't see why an aside needs to be announced as anything special at all if it's filling one of the not-special-at-all roles that HTML would have it play (e.g., advertisement or pull quote which, using modern article narratives, is just a repeat of content that has been previously said in the primay article content). and if it does need to have special semantics exposed to the a11y tree... well then use it as a named complementary. or use an actual edit: also just noticed that when you quoted me you left out the "but eh...". that was arguably the most important part of that response ;) |
I would advocate only mapping I don't think we need the I don't think we should map For landmarks the purpose is to support efficient keyboard navigation and identification of major sections of content, similar to how a good visual design helps people identify the functional grouping of information in a graphical rendering. If there are two many or redundant landmarks they become less useful and often time confusing useless. In human factors research there is the magical number 7 that seems to be about the optimal number of things for people to deal with in a list, so ideally a typical page would have 7 or less landmarks in a list for people to easily use them. |
i'm actually not in agreement that there can't be complementary content within a
Because if it was meant to be only tangential to the Additionally, I'd personally rather authors markup more @carmacleod @stevefaulkner I think we should go ahead with the idea that
|
@scottaohara Agreed. Child of main, sib of main, or aria-label[ledby], and (poof!) it's a landmark. [Aside <- 😄 : Have never been a fan of using aria-label[ledby] to change the role of an html element, but it's a necessary evil. |
I think if the |
@jongund I think that would be too complicated, and authors would get confused. Already, a lot of authors use aside within main, and they expect it to be a complementary landmark. They reason that if it's about the main content, it should be inside the main. I have been convinced that that's ok. Of course, "beside" main is ok, too, i.e. same level as main; sibling of main.
I completely agree, and I think HTML needs to take some responsibility for this. Something really obvious, like a boolean For now, though, I think Scott's solution to the problem is the best we have. I think it will reduce noise significantly, yet still allow authors to create complementary landmarks with a label if necessary. |
@carmacleod |
closes #86 Treat an `aside` element similarly to `header`, `footer` and `section`. map `aside` to `role=complementary` if: * scoped to `main` or `body` elements * or given accessible name if scoped to sectioning content or root elements otherwise, scope to `role=generic`
* aside mapping revisions closes #86 Treat an `aside` element similarly to `header`, `footer` and `section`. map `aside` to `role=complementary` if: * scoped to `main` or `body` elements * or given accessible name if scoped to sectioning content or root elements otherwise, scope to `role=generic` * provide links to terms adds links to sectioning content and sectioning root, as was done in `header` and `footer` Co-authored-by: Steve Faulkner <faulkner.steve@gmail.com>
Like the
header
andfooter
andsection
elements, theaside
element can be used liberally within a HTML document. This liberal use can lead to the semantics of the element becoming noise to aural UI users. What we did for theheader/footer
elements is to restrict the expression of the role semantics based on their nesting within other significant elements in the DOM. For thesection
element we restricted its expression based on the presence of an accessible name. I suggest we should do the same/similar for theaside
element.grep of aside usage - '<aside|' in *.txt: 9648 matches in 1376 files. 25221 files searched.
note: The data is derived from webdevdata.org latest dump (2016)
Some examples from above of pages with high usage up to 100+
The pages have been saved with their aside elements indicated visually:
/cc @cookiecrook @asurkov @w3c/kiss
The text was updated successfully, but these errors were encountered: