I am facing issues using Web Accessibility (using ARIA) with Backbone. When a view is getting rendered, automatically focus is going to that view and screen reader is reading that section in the order views are getting rendered. Is this the right behavior? I want to control this as I want screen reader to read the content the order I want. Please let me know your suggestions.
1 Answers
1
votes
If you are using templates for your views you can put your ARIA attributes in the HTML tag.
<ul role="tablist">
<li id="ch1Tab" role="tab">
{{data}}
</li>
</ul>
as far as screen readers it reads it from top to bottom but it doesn't trigger it to read the page again.
here is a discussion on the approach Accessibility and all these JavaScript frameworks
Javascript is not an issue its the foundation of the markup that is rendered in the browser. w