Quote:
Originally Posted by bookman156
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
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
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
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.