Bug 443764 – nsHTMLSelectListAccessible::GetState -- |if| condition is always true, r=aaronlev

This commit is contained in:
Alexander Surkov 2008-07-08 22:30:46 +08:00
parent 0e998422b9
commit 7504c4eca4

View File

@ -335,7 +335,7 @@ nsHTMLSelectListAccessible::GetState(PRUint32 *aState, PRUint32 *aExtraState)
nsCOMPtr<nsIDOMHTMLSelectElement> select (do_QueryInterface(mDOMNode));
if (select) {
if (*aState | nsIAccessibleStates::STATE_FOCUSED) {
if (*aState & nsIAccessibleStates::STATE_FOCUSED) {
// Treat first focusable option node as actual focus, in order
// to avoid confusing JAWS, which needs focus on the option
nsCOMPtr<nsIDOMNode> focusedOption;