Closed
Bug 1442196
Opened 6 years ago
Closed 6 years ago
HTML form element not exposed as a form landmark when it has an accessible name
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
mozilla60
Tracking | Status | |
---|---|---|
firefox60 | --- | fixed |
People
(Reporter: faulkner.steve, Assigned: MarcoZ)
Details
Attachments
(1 file)
It is expected that when a form element has an explicitname=true iA2 object property, the form element will have an accompanying attribute object xml-roles:form, so that AT can recognise it as a form landmark. refer to https://w3c.github.io/html-aam/#el-form https://w3c.github.io/core-aam/#mapping_role_table related JAWS issue: https://github.com/FreedomScientific/VFO-standards-support/issues/52
Reporter | ||
Comment 1•6 years ago
|
||
test case: http://www.scottohara.me/testing/form/
Assignee | ||
Comment 2•6 years ago
|
||
Trivial fix, taking.
Assignee: nobody → mzehe
Has STR: --- → yes
status-firefox60:
--- → affected
Component: Disability Access → Disability Access APIs
OS: Unspecified → All
Product: Firefox → Core
Hardware: Unspecified → All
Version: unspecified → Trunk
Comment hidden (mozreview-request) |
Comment 4•6 years ago
|
||
mozreview-review |
Comment on attachment 8956031 [details] Bug 1442196 - Expose an XML role of 'form' on a form element if it has an accessible name, https://reviewboard.mozilla.org/r/224974/#review230966 ::: accessible/generic/HyperTextAccessible.cpp:1162 (Diff revision 1) > + // Only return xml-roles "form" if the form has an accessible name. > + if (mContent->IsHTMLElement(nsGkAtoms::form)) { > + nsAutoString name; > + const_cast<HyperTextAccessible*>(this)->Name(name); > + return name.IsEmpty() ? nullptr : nsGkAtoms::form; > + } alternatively, you could change LandmarkRole() to LandmarkRole(bool hasExplicitName) and pass there true if 'explicit-name' is set, to avoid double computation of Name().
Attachment #8956031 -
Flags: review?(surkov.alexander) → review+
Assignee | ||
Comment 5•6 years ago
|
||
After discussion on IRC, we agreed to push that parameter reorg to a different bug and land the patch above as-is.
Pushed by mzehe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/916d91f23f89 Expose an XML role of 'form' on a form element if it has an accessible name, r=surkov
Comment 7•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/916d91f23f89
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
You need to log in
before you can comment on or make changes to this bug.
Description
•