View Single Post
Old 11-15-2009, 12:58 PM   #9
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,504
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
How interesting.

The transitional XHTML 1.0 DTD has the br element with a default attribute of clear:none

The strict XHTML 1.0 DTD has the br element with no default attributes.

Double-checking the ePub specs, it seems we ought to be using the XHTML 1.1 DTD instead. And in that br has no default attributes.

So I think that epubcheck was right!

Quote:
Originally Posted by charleski View Post
It's nothing to do with your css.
You're using the transitional xhtml spec in your doctype:
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'

Change that to
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'
and the errors should go away

For instance, here's Pauls example ePub in which the only thing that's changed is the xhtml spec in the doctype. It now produces errors in epubcheck.
pdurrant is offline   Reply With Quote