View Single Post
Old 07-30-2019, 04:26 AM   #246
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,748
Karma: 24032915
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Leonatus View Post
Sigil v. 0.9.16.
I use the plugin EpubCheck_v0.4.1.4, whereas a friend uses the standalone version.
What's the EPUBCheck version number that's displayed when you run the plugin?
(It should say: Running EPUBCheck v4.2.2, if you have the latest version.)

When I tested epub2 and epub3 files with the following code:

Code:
<body>
  <h1>
	<div>div test</div>
  </h1>
  <span>span test</span>
</body>
I noticed differences in the errors reported by EPUBCheck 4.2.2.

When I checked the epub2 file both problems were flagged as:

Code:
ERROR(RSC-005): Error while parsing file: element "div" not allowed here
ERROR(RSC-005): Error while parsing file: element "span" not allowed here
However, when I checked the epub3 file only the div was flagged:
Code:
ERROR(RSC-005): Error while parsing file: element "div" not allowed here
AFAIK, EPUBCheck uses Nu Html Checker for checking HTML5 files in epub3 books, and according to Nu Html Checker, isolated <span> tags are apparently OK in HTML5 files. IMHO, this is a bug.

Please create blank epub2 and epub3 books with my code, re-create my tests and let me know if you're getting different results.
Doitsu is offline   Reply With Quote