Opened 13 years ago
Closed 10 years ago
#5768 closed enhancement (wontfix)
Support new ARIA syntax in templates
Reported by: | simonjb | Owned by: | Becky Gibson |
---|---|---|---|
Priority: | high | Milestone: | future |
Component: | Accessibility | Version: | 1.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description (last modified by )
Our template syntax is different from, and more verbose than, the new ARIA syntax for setting roles and states. We need some processing of role and state specifications in templates because FF2 does not support the new syntax. However, we could parse the new syntax in templates and make the necessary changes for FF2.
For example:
- waiRole="menu" vs. role="menu"
- waiState="labelledby-foo" vs. aria-labelledby="foo"
Change History (7)
comment:1 Changed 13 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 13 years ago by
Milestone: | 1.2 → 1.3 |
---|
comment:3 Changed 13 years ago by
There are a couple options:
- change the syntax; this breaks backwards compatibility but I'm doubtful anyone outside of dijit is doing a11y in their templates
- change the syntax for the 2.0 release
- support old and new syntax concurrently; I don't want to do that since it adds more overhead to widget instantiation.
Also note that the new syntax can be handled natively by FF3, which would make template rendering faster except for FF2.
comment:6 Changed 11 years ago by
Milestone: | 1.4 → future |
---|
comment:7 Changed 10 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
FF2 is already desupported, and for 2.0 we'll just remove role/state parsing code from _Templated, since the templates can directly set role and aria state attributes.
Note we could probably do this along side 5984. I wouldn't mind taking this one, and maybe pairing with Joseph so he can get a bit of a widget template tour.