Bug 148007 - Active Accessibility: wrong accState for XUL label and description elements. r=kyle, sr=hewitt

git-svn-id: svn://10.0.0.236/trunk@123282 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
aaronl%netscape.com 2002-06-14 01:47:35 +00:00
parent df8aa3ff05
commit 9ece420781
2 changed files with 9 additions and 0 deletions

View File

@ -60,3 +60,11 @@ NS_IMETHODIMP nsXULTextAccessible::GetAccName(nsAString& _retval)
}
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP nsXULTextAccessible::GetAccState(PRUint32 *_retval)
{
// Labels and description can only have read only state
// They are not focusable or selectable
*_retval = STATE_READONLY;
return NS_OK;
}

View File

@ -50,6 +50,7 @@ class nsXULTextAccessible : public nsTextAccessible
public:
nsXULTextAccessible(nsIDOMNode* aDomNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccName(nsAString& _retval);
NS_IMETHOD GetAccState(PRUint32 *_retval);
};
#endif