Quote:
Originally Posted by KevinH
Where was the doctype in his image?
|
The commercial epub2 files that I used had indeed no doctypes (and no XML declarations), but they passed EPUBCheck.
Before mend:
Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
After mend:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
I.e., epub2 files without doctypes that were opened without warnings in Sigil 1.3.0, even when Mend On Open was enabled, now trigger the warning that the OP complained about.
Of course the warning is correct since doctypes are mandatory in XHTML files. What is strange is that EPUBCheck doesn't complain about missing doctypes.
There's
an issue that was closed.