Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#4556 closed defect (fixed)

XHTML2 namespace not required for ARIA roles

Reported by: Becky Gibson Owned by: simonjb
Priority: high Milestone: 1.0
Component: Accessibility Version: 0.9
Keywords: Cc: davidb
Blocked By: Blocking:

Description

consider updating wai functions for ARIA to not use Xhtml2 namespaces for roles - it is not needed in Firefox2 and will assist in future ARIA support in operat

from Aaron: you can do: <div role="wairole:menuitem" aaa:checked="true"> and it will work in ff2

the checked attribute needs to be set dynamically for ff2, but role doesn't

and now for ff3, you can just do <div role="menuitem" aria-checked="true"> right in the html but the old way still works as well

Attachments (2)

wai.diff (9.2 KB) - added by simonjb 12 years ago.
wai_2.diff (21.1 KB) - added by simonjb 12 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 Changed 12 years ago by simonjb

I propose adding the following functions to dijit.wai:

  • setRole()
  • setState()
  • getRole()
  • getState()
  • removeRole()
  • removeState()

(or setWaiRole() and so on, or setARIARole() and so on)

I would make waiRole, waiState, setAttr, getAttr, and removeAttr private. This will allow us to implement different behaviour on different browsers, such as on FF2 and FF3. I also think it makes the API a little clearer and easier to use.

comment:2 Changed 12 years ago by Becky Gibson

yes, agreed. It was nice having one function to set both role and state but we will likely need different implementations in different browsers going forward and it would be better to set the api now. However, this is an api change and we need to run it by Bill.

comment:3 Changed 12 years ago by simonjb

Owner: changed from Becky Gibson to simonjb

comment:4 Changed 12 years ago by davidb

Cc: davidb added

comment:5 Changed 12 years ago by simonjb

Status: newassigned

Changed 12 years ago by simonjb

Attachment: wai.diff added

Changed 12 years ago by simonjb

Attachment: wai_2.diff added

comment:6 Changed 12 years ago by simonjb

Resolution: fixed
Status: assignedclosed

(In [10791]) Modified the API for setting ARIA roles and states. Implemented support for recent changes in the ARIA specification. Fixes #4556: XHTML2 namespace not required for ARIA roles.

comment:7 Changed 12 years ago by simonjb

(In [10792]) Small correction to docs. Refs #4556.

comment:8 Changed 12 years ago by Adam Peller

(In [10842]) Mail demo was b0rken. Refs #4556

Note: See TracTickets for help on using tickets.