Closed
Bug 390284
Opened 17 years ago
Closed 17 years ago
Support roles that are dependent on an ARIA role + an ARIA property
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
People
(Reporter: aaronlev, Assigned: aaronlev)
References
(Blocks 1 open bug)
Details
(Keywords: access)
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
evan.yan
:
review+
damons
:
approval1.9+
|
Details | Diff | Splinter Review |
If an ARIA textbox has aaa:secret="true" then it's an nsIAccessibleRole::ROLE_PASSWORD
If an ARIA button has aaa:pressed at all, it's an nsIAccessibleRole::ROLE_TOGGLE_BUTTON
If an ARIA button has aaa:haspopup it's an nsIAccesibleRole::ROLE_BUTTONMENU
Assignee | ||
Comment 1•17 years ago
|
||
Attachment #274610 -
Flags: review?(Evan.Yan)
Assignee | ||
Comment 2•17 years ago
|
||
Attachment #274611 -
Flags: review?(Evan.Yan)
Comment 3•17 years ago
|
||
I think
(State(xpAccessible) & nsIAccessibleStates::STATE_HASPOPUP)\
and
content->AttrValueIs(kNameSpaceID_WAIProperties, nsAccessibilityAtoms::haspopup,
nsAccessibilityAtoms::_true, eCaseMatters)
are not the same
Comment 4•17 years ago
|
||
I mean probably we should check states instead of attributes?
Comment 5•17 years ago
|
||
Also, please add a bug number about reorg of aria table and probably it makes sense to mention these code in that bug.
Assignee | ||
Updated•17 years ago
|
Attachment #274610 -
Attachment is obsolete: true
Attachment #274610 -
Flags: review?(Evan.Yan)
Assignee | ||
Comment 6•17 years ago
|
||
Surkov, it's not exactly the same but it works just as well and is a lot less expensive. GetState() is fairly expensive because of all the visibility checks etc.
Comment on attachment 274611 [details] [diff] [review]
Support role dependent on role + ARIA properties in GetFinalRole()
>+ if (content) {
>+ if (content->HasAttr(kNameSpaceID_WAIProperties, nsAccessibilityAtoms::pressed)) {
>+ // For aaa:pressed="false" or aaa:pressed="true"
>+ // For simplicity, any pressed attribute indicates it's a toggle button
>+ *aRole = nsIAccessibleRole::ROLE_TOGGLE_BUTTON;
>+ }
>+ if (content->AttrValueIs(kNameSpaceID_WAIProperties, nsAccessibilityAtoms::haspopup,
>+ nsAccessibilityAtoms::_true, eCaseMatters)) {
nit: I think it's better to use "else if"
Attachment #274611 -
Flags: review?(Evan.Yan) → review+
Assignee | ||
Comment 8•17 years ago
|
||
Comment on attachment 274611 [details] [diff] [review]
Support role dependent on role + ARIA properties in GetFinalRole()
A polish bug for ARIA support. Very low risk.
Attachment #274611 -
Flags: approval1.9?
Assignee | ||
Comment 9•17 years ago
|
||
I'll add the else to else if at checkin time.
Updated•17 years ago
|
Attachment #274611 -
Flags: approval1.9? → approval1.9+
Assignee | ||
Updated•17 years ago
|
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•