Download & Extend

Tab title beginning with an accented character causes an XHTML validation error

Project:Tabs (jQuery UI tabs)
Version:6.x-1.3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs work
Issue tags:accents, Invalid XHTML

Issue Summary

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.

Comments

#1

Title:Tab title beginning with an accented character causes an XHTM validation error» Tab title beginning with an accented character causes an XHTML validation error

#2

Oops. Here is the patch...

AttachmentSize
tabs.module.patch 1.67 KB

#3

Status:needs review» needs work

I'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?

#4

There 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

nobody click here