Ticket #132 (closed defect: fixed)

Opened 5 years ago

Last modified 2 years ago

Illegal character in HTML ID attribute

Reported by: YitzGale Owned by:
Priority: minor Milestone:
Version: 2.6.0 Keywords:
Cc:

Description

Haddock's HTML backend generates ID attributes for connecting to the Javascript that collapses and expands sections of the module hierarchy. These ID attributes currently have the form "n:N" where N is an integer.

That is not valid HTML: the value of the ID attribute must match the NAME production in the DTD, and ':' is not a valid character for that production. So Haddock's HTML output does not validate against the DTD that it claims in its DOCTYPE declaration.

Attached is a patch to use '.' instead of ':'.

Attachments

do-not-generate-illegal-character-in-html-id-attribute_.dpatch (17.7 kB) - added by YitzGale 5 years ago.
Use '.' instead of ':' in HTML ID attributes

Change History

Changed 5 years ago by YitzGale

Use '.' instead of ':' in HTML ID attributes

Changed 5 years ago by waern

  • status changed from new to closed
  • resolution set to fixed

Thanks! Patch applied.

Changed 2 years ago by anonymous

  • milestone 2.7.0 deleted

Milestone 2.7.0 deleted

Note: See TracTickets for help on using tickets.