WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: coding for breadcrumbs in html4

for

From: Mallory van Achterberg
Date: Dec 17, 2014 3:50AM


On Wed, Dec 17, 2014 at 12:13:16PM +0200, Jukka K. Korpela wrote:
> As far as I can see, the exposed information is just the ARIA
> attribute role=navigation. Thus the same can be achieved (better) by
> using <div role=navigation>...</div> instead of <nav>...</nav>,
> right?

Yeah, but the "type a bit fewer characters and get something for
free" is a Thing, at least in the West. Larry Wall did say laziness
was a virtue. Automatic roles? Word, yo! Even though just today I
saw actual, live developers in the wild making
<a href="javascript:void()" role="link">some link</a>
so maybe Laziness needs to be a bit more promoted.

Actually, I'm not sure of the "(better)" part, unless you mean IE<9
issues, in which case it's not Lazier to use nav, but more work, which
we all want to avoid. But for those Lucky Ones, nav is the true way
to the 8-Fold-Path, right?

_mallory