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:
aaronleventhal%moonset.net 2005-09-14 16:46:07 +00:00
Родитель 6bed295ae9
Коммит caf3dd04b5
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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