View Single Post
Old 11-16-2020, 11:34 AM   #42
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,735
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by KevinH View Post
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.

Last edited by Doitsu; 11-16-2020 at 11:37 AM.
Doitsu is offline