зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
6bed295ae9
Коммит
caf3dd04b5
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче