Closed
Bug 551978
Opened 15 years ago
Closed 15 years ago
Update universal ARIA attribute support to latest spec
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
People
(Reporter: davidb, Assigned: davidb)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 2 obsolete files)
12.08 KB,
patch
|
MarcoZ
:
review+
surkov
:
review+
|
Details | Diff | Splinter Review |
We're a bit out of date. Patch coming.
Assignee | ||
Comment 1•15 years ago
|
||
WIP. Includes small cleanup of unused param.
Assignee: nobody → bolterbugz
Status: NEW → ASSIGNED
Assignee | ||
Updated•15 years ago
|
Attachment #432166 -
Flags: review?(surkov.alexander)
Assignee | ||
Comment 2•15 years ago
|
||
The aria-expanded issue needs more time and will happen on bug 551684
Comment 3•15 years ago
|
||
David, it would help a lot for clean history if you quote the changed spec and provide a links :) Also it's nice to have patch description. At least the patch makes me think we want the one change only to not create accessibles if some aria attributes are presented.
Assignee | ||
Comment 4•15 years ago
|
||
Comment on attachment 432166 [details] [diff] [review] WIP yep. premature review request. i meant to add tests as well.
Attachment #432166 -
Flags: review?(surkov.alexander)
Assignee | ||
Comment 5•15 years ago
|
||
(In reply to comment #3) > David, it would help a lot for clean history if you quote the changed spec and > provide a links :) Also it's nice to have patch description. At least the patch > makes me think we want the one change only to not create accessibles if some > aria attributes are presented. Sure. This is just making our method correct according to: 6.4 of http://www.w3.org/WAI/PF/aria/states_and_properties I removed sort and required. We'll still create accessibles for these in 99.9% of cases, and the other cases are probably author error.
Assignee | ||
Comment 6•15 years ago
|
||
6.4 is currently: * aria-atomic * aria-busy (state) * aria-controls * aria-describedby * aria-disabled (state) * aria-dropeffect * aria-flowto * aria-grabbed (state) * aria-haspopup * aria-hidden (state) * aria-invalid (state) * aria-label * aria-labelledby * aria-live * aria-owns * aria-relevant
Assignee | ||
Comment 7•15 years ago
|
||
Attachment #432166 -
Attachment is obsolete: true
Attachment #433158 -
Flags: review?(surkov.alexander)
Comment 8•15 years ago
|
||
aria-required should be removed from gWAIUnivStateMap and added to nsRoleMap aria-expanded should be too but since it's in law now then it should be commented I think. { role: ROLE_TEXT_CONTAINER }, - please comment who is who global_aria_states - global states and props? btw, test_aira.html -> test_aria_globalstatesnprops.html or test_aria_global.html?
Assignee | ||
Comment 9•15 years ago
|
||
(In reply to comment #8) > aria-required should be removed from gWAIUnivStateMap and added to nsRoleMap Right. > aria-expanded should be too but since it's in law now then it should be > commented I think. > > { role: ROLE_TEXT_CONTAINER }, - please comment who is who Sure. > > global_aria_states - global states and props? Right. Note the distinction between state and property is not important. Did you want me to change the name? (I couldn't tell) > btw, test_aira.html -> test_aria_globalstatesnprops.html or > test_aria_global.html? I was thinking tree/test_aria could eventually contain other aria specific tests.
Assignee | ||
Comment 10•15 years ago
|
||
(In reply to comment #9) > (In reply to comment #8) > > global_aria_states - global states and props? > > Right. Note the distinction between state and property is not important. Did > you want me to change the name? (I couldn't tell) I changed it :)
Assignee | ||
Comment 11•15 years ago
|
||
Addressed comments thanks Alexander. I filed Bug 553117 for follow up on aria-required. If we remove it we would regress handy stuff like: <div id="checkbox_required_true" role="checkbox" aria-required="true"> I don't think we should do that.
Attachment #433158 -
Attachment is obsolete: true
Attachment #433215 -
Flags: review?(surkov.alexander)
Attachment #433215 -
Flags: review?(marco.zehe)
Attachment #433158 -
Flags: review?(surkov.alexander)
Comment 12•15 years ago
|
||
Comment on attachment 433215 [details] [diff] [review] patch 2 > eStateMapEntryID nsARIAMap::gWAIUnivStateMap[] = { >- eARIARequired, >- eARIAInvalid, >- eARIAHasPopup, >+ // Note the following universal ARIA attributes are intentionally not >+ // included in this state map: atomic, controls, describedby, grabbed, label, >+ // labelledby, live, owns, relevant. The states listed in this array are >+ // interesting because they have platform state mappings. In general (with haspopup exception) they aren't included because they aren't states and therefore they aren't mapped to accessible states. I think I don't find this comment useful. I think it should be enough the special comment for haspoup. > eARIABusy, > eARIADisabled, >- eARIAExpanded, >+ eARIAExpanded, // Currently under spec review but precedent exists >+ eARIAHasPopup, // Note this is technically a "property" >- {&nsAccessibilityAtoms::aria_checked, ATTR_BYPASSOBJ | ATTR_VALTOKEN }, /* exposes checkable obj attr */ >+ {&nsAccessibilityAtoms::aria_checked, ATTR_BYPASSOBJ | ATTR_VALTOKEN }, /* exposes checkable obj attr */ nit: I didn't catch what was changed here.
Attachment #433215 -
Flags: review?(surkov.alexander) → review+
Updated•15 years ago
|
Attachment #433215 -
Flags: review?(marco.zehe) → review+
Comment 13•15 years ago
|
||
Comment on attachment 433215 [details] [diff] [review] patch 2 r=me thanks!
Assignee | ||
Comment 14•15 years ago
|
||
(In reply to comment #12) > (From update of attachment 433215 [details] [diff] [review]) > > > eStateMapEntryID nsARIAMap::gWAIUnivStateMap[] = { > >- eARIARequired, > >- eARIAInvalid, > >- eARIAHasPopup, > >+ // Note the following universal ARIA attributes are intentionally not > >+ // included in this state map: atomic, controls, describedby, grabbed, label, > >+ // labelledby, live, owns, relevant. The states listed in this array are > >+ // interesting because they have platform state mappings. > > In general (with haspopup exception) they aren't included because they aren't > states and therefore they aren't mapped to accessible states. I think I don't > find this comment useful. I think it should be enough the special comment for > haspoup. Sure, if you don't find it useful I'll change it. (Note there might be more haspopup-like exceptions down the road) > > > eARIABusy, > > eARIADisabled, > >- eARIAExpanded, > >+ eARIAExpanded, // Currently under spec review but precedent exists > >+ eARIAHasPopup, // Note this is technically a "property" > > >- {&nsAccessibilityAtoms::aria_checked, ATTR_BYPASSOBJ | ATTR_VALTOKEN }, /* exposes checkable obj attr */ > >+ {&nsAccessibilityAtoms::aria_checked, ATTR_BYPASSOBJ | ATTR_VALTOKEN }, /* exposes checkable obj attr */ > > nit: I didn't catch what was changed here. touch up: removed one space from the comment
Comment 15•15 years ago
|
||
(In reply to comment #14) > Sure, if you don't find it useful I'll change it. (Note there might be more > haspopup-like exceptions down the road) ok, it's up to you. > > nit: I didn't catch what was changed here. > > touch up: removed one space from the comment ok
Assignee | ||
Comment 16•15 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/f74f3ee17597
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•