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.
I have noticed that even when I strip all the classes on my menu (.leaf, .first,...) that the attribute "class" remains resulting in invalid markup. Like the example below.
<li class>menu link</li>
Comment | File | Size | Author |
---|---|---|---|
#2 | mothership-1694542.patch | 1011 bytes | wouter.v |
#1 | [mothership]-[remove-class-attr]-[1694542]-[].patch | 0 bytes | wouter.v |
Comments
Comment #1
wouter.v CreditAttribution: wouter.v commentedI've created a little patch for this. See attached file.
EDIT: something went wrong with the patch. Looking for fix.
Comment #2
wouter.v CreditAttribution: wouter.v commentedCorrect patch for this issue. (patch against dev version)