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.
This patch removes the extraneous markup when outputting menus in Drupal. It removes the uneeded wrapper <div>
s, as all of the styles can be applied the <ul>
directly. After this patch, menus will look *exactly* the same in core, however, there will be less markup, meaning faster loading pages, less tag-soup, and easier time for themers.
This is patch #2 in a series of patches to clean up the HTML spaghetti in Drupal.
Comment | File | Size | Author |
---|---|---|---|
drupal_32.patch | 2.48 KB | m3avrck | |
Comments
Comment #1
chx CreditAttribution: chx commentedyummy! less code in Drupal AND in the HTML source code too. Great work.
Comment #2
Dries CreditAttribution: Dries commentedCommitted to HEAD. Thanks.
Comment #3
Mad Maks CreditAttribution: Mad Maks commentedThis patch causing problems in the theme spreadfirefox, patch will be committed when this theme is ready for 4.7
Comment #4
(not verified) CreditAttribution: commented