[drupal-devel] [bug] printer friendly output generates invalid id and name attributes

puregin drupal-devel at drupal.org
Thu May 5 10:02:23 UTC 2005


Issue status update for http://drupal.org/node/22053

 Project:      Drupal
 Version:      cvs
 Component:    book.module
 Category:     bug reports
 Priority:     normal
 Assigned to:  puregin
 Reported by:  puregin
 Updated by:   puregin
 Status:       patch
 Attachment:   http://drupal.org/files/issues/book_id_xhtml.patch (1.31 KB)

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.




puregin




More information about the drupal-devel mailing list