Quote:
Originally Posted by Doitsu
HTML5 also still requires them:
(emphasis mine)
|
No, it absolutely does not. <!doctype html> prevents HTML documents served up with the text/html MIME type being rendered in quirks mode by *browsers*.
EPUB is not HTML it is XHTML and is not rendered directly by browsers. In XHTML served up with the correct XHTML MIME type, the doctype is not required:
XHTML
If you serve your page as XHTML using the application/xhtml+xml MIME type in the Content-Type HTTP header, you do not need a DOCTYPE to enable standards mode, as such documents always use 'full standards mode'.
https://developer.mozilla.org/en-US/...rds_Mode#xhtml
And even epubcheck agrees with me. It does not warn about missing DOCTYPE in more modern versions of EPUB than EPUB 2.