By dcam on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
11.3.x
Introduced in version:
11.3.0
Issue links:
Description:
The default HTML for the language switcher block contains an unordered list whose list items had an hreflang attribute which hreflang contained the two-letter code for the linked language. The hreflang attribute is not allowed on <li> elements. This attribute has been changed to data-drupal-language.
Before:
<ul class="links">
<li hreflang="en" data-drupal-link-system-path="<front>"><a href="/" class="language-link" hreflang="en" data-drupal-link-system-path="<front>">English</a></li>
<li hreflang="is" data-drupal-link-system-path="<front>"><a href="/is" class="language-link" hreflang="is" data-drupal-link-system-path="<front>">Icelandic</a></li>
</ul>
After:
<ul class="links">
<li data-drupal-language="en" data-drupal-link-system-path="<front>"><a href="/" class="language-link" hreflang="en" data-drupal-link-system-path="<front>">English</a></li>
<li data-drupal-language="is" data-drupal-link-system-path="<front>"><a href="/is" class="language-link" hreflang="is" data-drupal-link-system-path="<front>">Icelandic</a></li>
</ul>
Impacts:
Themers