Bug 299122. Support STATE_CHECKABLE on XUL menuitems and listitems. r=parente, sr=tor, a=asa

This commit is contained in:
aaronleventhal%moonset.net 2005-07-07 17:10:08 +00:00
parent 74efa171f5
commit f2d726ae3f

View File

@ -78,10 +78,10 @@ NS_IMETHODIMP nsXULMenuitemAccessible::GetState(PRUint32 *_retval)
element->GetAttribute(NS_LITERAL_STRING("type"), menuItemType);
if (!menuItemType.IsEmpty()) {
// Selectable?
// Checkable?
if (menuItemType.EqualsIgnoreCase("radio") ||
menuItemType.EqualsIgnoreCase("checkbox"))
*_retval |= STATE_SELECTABLE;
*_retval |= STATE_CHECKABLE;
// Checked?
nsAutoString checkValue;