Bug 664142 - DEFAULT state exposed incorrectly for HTML, r=tbsaunde
This commit is contained in:
@@ -278,8 +278,8 @@ nsHTMLButtonAccessible::NativeState()
|
||||
{
|
||||
PRUint64 state = nsHyperTextAccessibleWrap::NativeState();
|
||||
|
||||
if (mContent->AttrValueIs(kNameSpaceID_None, nsGkAtoms::type,
|
||||
nsGkAtoms::submit, eIgnoreCase))
|
||||
nsEventStates elmState = mContent->AsElement()->State();
|
||||
if (elmState.HasState(NS_EVENT_STATE_DEFAULT))
|
||||
state |= states::DEFAULT;
|
||||
|
||||
return state;
|
||||
@@ -382,8 +382,8 @@ nsHTML4ButtonAccessible::NativeState()
|
||||
|
||||
state |= states::FOCUSABLE;
|
||||
|
||||
if (mContent->AttrValueIs(kNameSpaceID_None, nsGkAtoms::type,
|
||||
nsGkAtoms::submit, eIgnoreCase))
|
||||
nsEventStates elmState = mContent->AsElement()->State();
|
||||
if (elmState.HasState(NS_EVENT_STATE_DEFAULT))
|
||||
state |= states::DEFAULT;
|
||||
|
||||
return state;
|
||||
|
||||
Reference in New Issue
Block a user