Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi! I've checked my site with W3C validator and realized that language switcher is not in way with W3C standart
`Attribute hreflang not allowed on element li at this point`
Seems like Drupal\bootstrap\Plugin\Preprocess\BootstrapDropdown is processing links and putting hreflang attribute even for links wrapper
Comments
Comment #2
markhalliwellThis will only be removed if/when it is removed from core (which is what this code is based on).
Comment #3
markhalliwellFTR, W3C validator was merely created in an attempt to combat IE's complete disregard of XHTML back in the day.
It is an outdated "tool" that never really kept up with HTML5.
Why people continue to use it as a "gold standard" for how "good" a site is... is a joke.
Furthermore, the above message is only a "warning" (informative) not a real "error", meaning that browsers will likely just ignore it, not blow up and crash.
Thus, I'm downgrading the category and priority.