Closed
Bug 1357100
Opened 6 years ago
Closed 4 years ago
Implement support for implicit value for aria-level on heading role
Categories
(Core :: Disability Access APIs, task, P3)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
mozilla70
Tracking | Status | |
---|---|---|
firefox70 | --- | fixed |
People
(Reporter: jdiggs, Assigned: gvelchuru, Mentored)
References
(Blocks 1 open bug)
Details
(Whiteboard: [lang=c++])
Attachments
(1 file)
In ARIA 1.1, the implicit value for aria-level on a heading is "2". See https://rawgit.com/w3c/aria/master/aria/aria.html#heading. Steps to reproduce: 1. Load data:text/html,<div role="heading">foo</div> 2. Use Accerciser to examine the element Expected result: "level:2" would be found in the accessible object attributes. Actual result: "level:2" is not found in the accessible object attributes.
Comment 1•6 years ago
|
||
This is something we should triage and fix but isn't among our most urgent bugs.(Contributions welcome as always!)
Priority: -- → P3
Updated•4 years ago
|
Mentor: jteh
Whiteboard: [lang=c++]
Comment 2•4 years ago
|
||
Thoughts on fixing this:
- The code should probably go here, just before we call GetDefaultLevel: https://searchfox.org/mozilla-central/rev/227f5329f75bd8b16c6b146a7414598a420260cb/accessible/base/nsAccUtils.cpp#90
- We only want to do this if we're dealing with an ARIA role="heading". Get the ARIA role map entry and check if it's a heading. Example: https://searchfox.org/mozilla-central/rev/227f5329f75bd8b16c6b146a7414598a420260cb/accessible/generic/Accessible.cpp#990
- If so, return the implicit value: 2.
- Add a test, similar to those for HTML headings (but based on the test in comment 0): https://searchfox.org/mozilla-central/rev/227f5329f75bd8b16c6b146a7414598a420260cb/accessible/tests/mochitest/attributes/test_obj_group.html#213
Updated•4 years ago
|
Type: defect → task
Assignee | ||
Comment 3•4 years ago
|
||
Currently taking a look at this!
Assignee | ||
Comment 4•4 years ago
|
||
I've uploaded a PR, im still unsure how exactly to test so some pointers would be fantastic
Flags: needinfo?(jteh)
Assignee | ||
Comment 5•4 years ago
|
||
Comment 6•4 years ago
|
||
Thanks for working on this! I'll add some comments to the patch, but here are some more precise steps to reproduce:
- Paste this URL into the address bar and press enter:
data:text/html,<div role="heading">foo</div>
- Right click on "foo" and choose "Inspect Accessibility Properties".
- In the properties tree, expand the "attributes".
- Expected: There should be a level: "2" attribute.
- Actual: There is no level attribute.
Flags: needinfo?(jteh)
Assignee | ||
Comment 7•4 years ago
|
||
I made the changes, but somehow I am still not passing the test -- am I missing something?
Flags: needinfo?(jteh)
Comment 8•4 years ago
|
||
Ug. Turns out I was incorrect about where to place this code. Sorry. :( I'll comment on the patch.
Flags: needinfo?(jteh)
Updated•4 years ago
|
Assignee: nobody → gvelchuru
Status: NEW → ASSIGNED
Pushed by jteh@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/54d0977adb44 change implicit val for aria-level on a heading to 2 r=Jamie
Comment 10•4 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
status-firefox70:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
You need to log in
before you can comment on or make changes to this bug.
Description
•