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,
If the title of a tab begins with an accented character the class name it produces begins with a dash which causes an XHTML validation error.
Example : the title "À l'intérieur" generates class="--l-039-int-rieur"
With the attached patch, this same title gives class="a-l-039-interieur"
which passes validation.
Comment | File | Size | Author |
---|---|---|---|
#2 | tabs.module.patch | 1.67 KB | Pomliane |
Comments
Comment #1
Pomliane CreditAttribution: Pomliane commentedComment #2
Pomliane CreditAttribution: Pomliane commentedOops. Here is the patch...
Comment #3
nedjoI'd prefer to avoid introducing a lot of complexity into tabs.
The token module IIRC includes good handling of this issue. Maybe we can use token if it's present?
Comment #4
smoothify CreditAttribution: smoothify commentedThere is a similar issue that i have just moved from the panels_tabs queue when titles start with a hyphen, it makes the html id fail validation
#431794: HTML validation errors when title starts with a hyphen