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