Anysurfer reported that the NAV tag in language switcher block should be removed for accessibility purpose

<div id="<?php print $block_html_id; ?>" class="<?php print $classes; ?>"<?php print $attributes; ?>>
  <?php print render($title_prefix); ?>
  <?php if ($block->subject): ?>
    <h2<?php print $title_attributes; ?>><?php print $block->subject ?></h2>
  <?php endif; ?>
  <?php print render($title_suffix); ?>
  <nav<?php print $content_attributes; ?>>
  <?php print $content ?>
  </nav>
</div>

Comments

Pierre-Gilles Valcke’s picture

Issue summary: View changes
Pierre-Gilles Valcke’s picture

Issue summary: View changes
stefan.r’s picture

Title: Remove <nav> tag in language switcher block » Make <nav> tag in language switcher block accessible

Removing it may break existing sites but according to their guidelines it is not necessary to remove it necessarily, what we can do instead is use <nav role="navigation">

See: http://www.anysurfer.be/nl/blog/detail/html5-aria-landmark-roles-en-scre...

Pierre-Gilles Valcke’s picture

I don't fully agree with https://www.drupal.org/node/2356187#comment-9250787

Het is een prima idee om beide te combineren: <nav role="navigation">.
Merk op dat dit enkel gebruikt mag worden voor het hoofdmenu en eventueel het submenu.
Het is niet de bedoeling dat u elk groepje van 2 of 3 links in een nav-element plaatst.

bart.hanssens’s picture

Assigned: Unassigned » stefan.r
Status: Active » Postponed
Issue tags: +release1.10
andrewmacpherson’s picture

Issue tags: -Web accessibility +Accessibility

Accessibility is the preferred tag. Cleaning up the tags so the core topic maintainers don't have to monitor multiple tag queues.