3 ms·
Deep nesting of divs is not a problem for the screen readers I'm familiar with; they'll flatten the representation of the page regardless. If a screen reader do
by mwcampbell 8y ago
Deep nesting of divs is not a problem for the screen readers I'm familiar with; they'll flatten the representation of the page regardless. If a screen reader does have a problem with this, IMO, that's the screen reader's fault, not the web developers. So there's no need to put role="presentation" on all your divs.
To be clear, though, there's another abuse of divs that is a problem: using a div with an onclick event handler and no ARIA role where a simple button would do. Don't do that. I'd suggest using an actual button tag if possible, so you get both keyboard and screen reader accessibility for free. But if that doesn't work with your CSS for whatever reason, at least put role="button" on that div.