Loading...
 
Skip to main content

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
(0)
Description

Tiki automatically includes the "id" attribute for headings. For example:

Copy to clipboard
!my heading


Becomes:
{CODE()}

<h1 id="my_heading">my heading</h1>


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.orgQuestion 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+
Demonstrate Bug (older Tiki versions)
Ticket ID
2548
Created
Thursday 04 June, 2009 14:33:58 UTC
by Unknown
LastModif
Tuesday 26 May, 2026 14:29:49 UTC


Show PHP error messages