Quote:
Originally Posted by kovidgoyal
No, it doesnt. Only epubcheck thinks it does. No actual epub renderer cares. DOCTYPES are just pointless noise. HTML moved away from them years ago. You should too.
|
Quite a few publishers still use epubcheck as their gold standard for checking epub files. If it fails epubcheck, they will send it back to you to be fixed. So much easier to add the DOCTYPE vermiform appendix until such time as epubcheck no longer requires it.
When I last looked at the epub2 documentation and dug into the supporting documents, they referenced the XHTML 1.1 documentation which states:
Quote:
There MUST be a DOCTYPE declaration in the document prior to the root element. If present, the PUBLIC identifier included in the DOCTYPE declaration MUST reference the DTD found in Appendix A using its Formal Public Identifier. The SYSTEM identifier MAY be modified as appropriate.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|