I was doing some accessibility work, and I have currently been adding aria-* attributes as I would any other attribute. Is there a special way of adding aria-* attributes to dojo widgets, or is best practice just to add them like any other attribute?

有帮助吗?

解决方案

See http://dojotoolkit.org/reference-guide/1.9/dijit/a11y/resources.html

Using the dijit methods should be much less wordy than manually setting aria- attributes and it handles some browsers specifics for you.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top