View Single Post
Old 09-16-2011, 12:43 AM   #4
Jim Lester
Evangelist
Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.
 
Jim Lester's Avatar
 
Posts: 416
Karma: 14682
Join Date: May 2008
Location: SF Bay Area
Device: Nook HD, Nook for Windows 8
First ePub requires XHTML, not HTML, and XHTML is stricter about what goes where.

For the first one, 'p' is not a valid child element of ul, only li is (for XHTML, that is). It looks like Calibre is inserting a p element to take care of whitespace, which it would've been better to ignore (but that's just a guess). I would think about submitting a bug to Koval (depending upon the original source)

For the second one text is not allowed outside of enclosing block element such as 'p' or 'div', from the closing 'p' tag in the original that you show, this is most likely a problem in your original content.

Running your original content through a XHTML validator may help.
Jim Lester is offline   Reply With Quote