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,

http://drupal.org/node/6542

and

http://drupal.org/node/2270

The attached patch generates ID strings of the form id="n1234" instead of the
current id="1234"; likewise for the name attribute.

CommentFileSizeAuthor
book_id_xhtml.patch1.31 KBpuregin

Comments

puregin’s picture

I'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.

puregin’s picture

Make that http://drupal.org/node/1898... sorry!