#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)
Change History (10)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
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 13 years ago by
Owner: | changed from Becky Gibson to simonjb |
---|
comment:4 Changed 13 years ago by
Cc: | davidb added |
---|
comment:5 Changed 13 years ago by
Status: | new → assigned |
---|
Changed 13 years ago by
Changed 13 years ago by
Attachment: | wai_2.diff added |
---|
comment:6 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
I propose adding the following functions to dijit.wai:
(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.