문제

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