View Single Post
Old 10-28-2016, 11:08 AM   #4
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,884
Karma: 6120478
Join Date: Nov 2009
Device: many
Hi,

Html rules for omitting tags are *not* followed in xhtml (epubs) as xhtml does not allow for omitting tags (opening, closing or otherwise). So while that page might be valid html, it will not be valid xhtml according to the rules.

And fwiw "well-formed" seems to be a continuum. For some tools it just means it follows the basic structure and has matched opening and closing tags. For other tools, it might include if the tags are used in the proper order (ie. has proper parents), etc.

The xhtml rules are much stricter than html rules. So one html tool can say that the html is well formed while another xhtml checker might barf over missing tags which were perfectly legal under html just not under xhtml.

To complicate things even further, epub 3.1 (4?) when it is released some time in the future will allow html parsing rules as well as xhtml parsing rules. It will be a real mess for any single parser to deal with.

Hope this helps.

KevinH
KevinH is offline   Reply With Quote