Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Toolbar module causes page to not follow W3C.
Attribute aria-owned-by not allowed on element div at this point.
Proposed resolution
Remaining tasks
User interface changes
API changes
Comment | File | Size | Author |
---|---|---|---|
#10 | remove-unrelated-aria-tag-and-update-existing-2471809-10.patch | 929 bytes | skippednote |
#2 | remove-unvalid-aria-toolbar-2471809-2.patch | 586 bytes | Dom. |
Comments
Comment #1
nod_Comment #2
Dom. CreditAttribution: Dom. commentedTo be honest, I can't even find a reference to aria-owned-by neither in Google nor on the aria spec document (http://www.w3.org/TR/html-aria/). Thus here is a patch to actually remove it.
Comment #3
axe312 CreditAttribution: axe312 commentedThis might provide more infos about the aria attribute:
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA
Comment #4
Dom. CreditAttribution: Dom. commentedComment #5
nod_Critical here is to know if screenreaders use it, whether it's in the spec or not. Accessibility is for people not validators. Once that's confirmed (or not) we can talk about a patch. I know a screenreader user has been involved in the making of toolbar to check accessibility, so it's probably not been added for the fun of it.
Comment #6
Dom. CreditAttribution: Dom. commented@nod : true. Just I can see anything of aria-owned-by in the doc.
Comment #7
Dom. CreditAttribution: Dom. commentedAttaching #1137920: Fix toolbar on small screen sizes and redesign toolbar for desktop which originally added the aria-owned-by attribute.
Comment #8
Wim LeersPinged Jesse Beach :) https://twitter.com/wimleers/status/593439139057512448
Comment #9
jessebeach CreditAttribution: jessebeach commentedDom, thank you for bringing this issue up.
You're right,
aria-owned-by
doesn't exist in the spec. What we're trying to do here is create a relationship between DOM elements that isn't represented through hierarchy. That relationship should be established with thearia-owns
(http://www.w3.org/TR/wai-aria/states_and_properties#aria-owns) attribute on the toolbar button that opens the tab. This code is there, but I believe it's wrong. This is the code now.It should be
aria-owns
should indicate the ID of the DOM element that this element owns.Dom, could you update your patch to reflect this?
Comment #10
skippednote CreditAttribution: skippednote at Axelerant commentedTested Dom's patch and the aria-owned-by errors goes away when I run it through the W3C validator.
I've attached a patch with both Dom's and jessebeach's changes included.
Comment #11
webchickAdding missing word to make the title less confusing. :)
Also adding some tags.
Comment #13
webchickPS: Nice to see you again, jessebeach! :D Thanks for stopping by!
Comment #15
Dom. CreditAttribution: Dom. commented"This document was successfully checked as HTML5!" using #10 !
RTBC since I have :
- applied and check patch on latest trunk : it now validate the page using W3C.
- checked manually all instance of "aria-owns" in the generated source to check it references an existing ID
- read through the patch for coding standars
For all this reasons, move this issue to RTBC.
Comment #17
Dom. CreditAttribution: Dom. commentedHum.. test fail seems weird here... can't clone git repo ?!
Comment #18
Wim LeersTestbot is completely broken today :( We'll have to wait until the DA fixes the testbots…
Comment #19
jessebeach CreditAttribution: jessebeach commentedLGTM.
PPS: Hi webchick!!
Comment #21
Dom. CreditAttribution: Dom. commentedBack to RTBC then after #15.
Comment #22
nod_Removing w3c tag, the w3c validation seems to be used a little more. w3c alone isn't very clear.
Comment #23
alexpottThis issue is a normal bug fix, and doesn't include any disruptive changes, so it is allowed per https://www.drupal.org/core/beta-changes. Committed 437fa37 and pushed to 8.0.x. Thanks!