Bug 559766 - add accessibility support for @list on HTML input and for HTML datalist, r=marcoz

This commit is contained in:
Alexander Surkov
2011-10-07 15:02:18 +09:00
parent da379347b8
commit 5d05235700
3 changed files with 67 additions and 3 deletions

View File

@@ -511,6 +511,10 @@ nsHTMLTextFieldAccessible::NativeState()
return state;
}
// Expose autocomplete state if it has associated autocomplete list.
if (mContent->HasAttr(kNameSpaceID_None, nsGkAtoms::list))
return state | states::SUPPORTS_AUTOCOMPLETION;
// No parent can mean a fake widget created for XUL textbox. If accessible
// is unattached from tree then we don't care.
if (mParent && gIsFormFillEnabled) {