View Single Post
Old 03-20-2016, 03:56 PM   #10
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,740
Karma: 24031403
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by bookman156 View Post
So an XHTML document that is not 'well-formed' can still validate?
That depends on the validator, or precisely on the doctype and dtd that it's validated against.

Quote:
Originally Posted by bookman156 View Post
For instance, in my original EPUB which I received from the publisher there is unclosed anchor code like this:

<a id="page_121">
Actually, that tag shouldn't have passed validation, because the closing tag is missing or it must be self-closing:

Code:
<a id="page_121" />
Quote:
Originally Posted by bookman156 View Post
which validates at W3C ...
W3C validation doesn't mean anything. If you want to release commercial books they'll need to pass ePubCheck.

Quote:
Originally Posted by bookman156 View Post
I didn't realise that Sigil makes changes to the EPUB that I haven't specifically made, but I guess this is because it is making it 'well-formed'? Interesting.
Sigil will usually convert self-closing tags to tags with a closing tag. AFAIK, this is automatically done by the Gumbo parser and has nothing to do with well-formedness.
Doitsu is offline   Reply With Quote