mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-06 06:22:33 +00:00
Bug 307819. Label for that is not inside a <form> is not getting exposed as accessible name for form controls. r=parente, sr=neil
This commit is contained in:
parent
a626a76c46
commit
8ee589bb39
@ -1430,7 +1430,8 @@ nsIContent* nsAccessible::GetHTMLLabelContent(nsIContent *aForNode)
|
||||
if (tag == nsAccessibilityAtoms::label) {
|
||||
return walkUpContent;
|
||||
}
|
||||
if (tag == nsAccessibilityAtoms::form) {
|
||||
if (tag == nsAccessibilityAtoms::form ||
|
||||
tag == nsAccessibilityAtoms::body) {
|
||||
// Reached top ancestor in form
|
||||
// There can be a label targeted at this control using the
|
||||
// for="control_id" attribute. To save computing time, only
|
||||
|
Loading…
x
Reference in New Issue
Block a user