Invalid XHTML for id attribute in headings
- Status
- Closed
- Subject
- Invalid XHTML for id attribute in headings
- Version
- 2.x
3.x
4.x - Category
- Usability
- Feature
- Wiki Syntax (text area, parser, external wiki, etc)
- Resolution status
- Invalid
- Submitted by
- Ushindi Gedeon
- Lastmod by
- Ushindi Gedeon
- Rating
- Description
Tiki automatically includes the "id" attribute for headings. For example:
Copy to clipboard!my heading
<h1 id="my_heading">my heading</h1>
Becomes:
{CODE()}
By default, the value of id is the text of the heading. However, as per the XHTML specification, id must begin with a letter — not a digit.Therefore, if I have:
Copy to clipboard!2009 Highlights
Tiki generates:Copy to clipboard<h1 id="2009_Highlights>my heading</h1>
Which is invalid.See http://validator.w3.org
for details.- Solution
- When parsing headings, Tiki needs to ensure that the generated id element always starts with a letter.
- Workaround
- Importance
- 3
- Priority
- 15
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 2548
- Created
- Thursday 04 June, 2009 14:33:58 UTC
by Unknown - LastModif
- Tuesday 26 May, 2026 14:29:49 UTC