Closed (fixed)
Project:
Drupal core
Version:
x.y.z
Component:
book.module
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
5 May 2005 at 09:53 UTC
Updated:
7 May 2005 at 03:25 UTC
Book.module generates <h1> elements with id and name attributes in printer friendly output. According to the XML spec, the NAME and ID type must not start with a numeral:
http://www.w3.org/TR/REC-xml/#NT-Name
This is related to similar XHTML validation issues noted elsewhere, for example,
and
The attached patch generates ID strings of the form id="n1234" instead of the
current id="1234"; likewise for the name attribute.
| Comment | File | Size | Author |
|---|---|---|---|
| book_id_xhtml.patch | 1.31 KB | puregin |
Comments
Comment #1
puregin commentedI'm closing this. I propose to remove all attributes from the H1 tags and wrap the entire section in a
<div>tag. The headers can be styled by selecting via the class attributes of the div.The proposed patch is attached to issue http://drupal.org/project/issues/1898.
Comment #2
puregin commentedMake that http://drupal.org/node/1898... sorry!