Page MenuHomePhabricator

mediawiki generates invalid xhtml id attributes
Closed, ResolvedPublic

Description

Author: hars

Description:
If a (sub)headline starts with a number, it gets an id attribute that starts with a number, too, although NameStartChar http://www.w3.org/TR/REC-xml/#NT-NameStartChar doesn't allow it.

For example:

Ethernet_physical_layer:355: element span: validity error : Syntax of value for attribute id of span is not valid
it Ethernet">edit</a>]</span> <span class="mw-headline" id="10_gigabit_Ethernet"

^

Possible solution: Prepend an underscore it the headline doesn't start with a NameStartChar, or almost any of the solutions proposed for bug 7356


Version: unspecified
Severity: normal

Details

Reference
bz29843

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 21 2014, 11:26 PM
bzimport set Reference to bz29843.
bzimport added a subscriber: Unknown Object (MLST).
  • This bug has been marked as a duplicate of bug 9530 ***