Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 05:43 AM   #91
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 84,195
Karma: 153715495
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
delete post

Last edited by JSWolf; Yesterday at 06:02 AM.
JSWolf is offline   Reply With Quote
Old Yesterday, 05:51 AM   #92
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 84,195
Karma: 153715495
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I'm trying 0.5.11. Would you mind removing -i? I don't see a need for it. Thanks.

Another fix, when the CSS references named fonts but there is no @font-face for it, please flag it as either an error or a warning.

Also, please check the CSS for errors. The CSS has an error of font-eight that should be flagged as an error. There is also a class for h4a which is also an error as there is no h4a.

font-size: x-small;; was missed as an error.

Last edited by JSWolf; Yesterday at 08:16 AM.
JSWolf is offline   Reply With Quote
Advert
Old Yesterday, 07:31 AM   #93
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 29,594
Karma: 212299010
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by JSWolf View Post
I'm trying 0.5.11. What with -i? It should not be needed. Please remove -i. Thanks.
Don't use it. Please stop conflating personal preferences with real issues.
DiapDealer is online now   Reply With Quote
Old Yesterday, 10:47 AM   #94
j.p.s
Grand Sorcerer
j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.
 
Posts: 6,066
Karma: 107275353
Join Date: Apr 2011
Device: pb360
Quote:
Originally Posted by JSWolf View Post
Would you mind removing -i? I don't see a need for it. Thanks.
Yeah, well you originally didn't see a need for epubveri.
j.p.s is offline   Reply With Quote
Old Yesterday, 01:41 PM   #95
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,850
Karma: 24222221
Join Date: Dec 2010
Device: Kindle PW2
@Kayadelenium:

Here's one final test case. It's mostly cosmetic issues:

epubveri output:

Spoiler:
Code:
ERROR PKG-006: The 'mimetype' file must be the first entry in the EPUB ZIP
ERROR OPF-054: dc:date value '2026-7-17' is empty or doesn't conform to ISO 8601 [OEBPS/content.opf:12:5]
ERROR OPF-032: guide reference 'Images/bookcover.png' does not target a Content Document [OEBPS/content.opf:30:5]
ERROR RSC-005: value of attribute "type" is invalid: 'fron' [OEBPS/toc.ncx:31:5]
ERROR RSC-005: lang and xml:lang attributes must have the same value [OEBPS/chapter1.xhtml:5:1]
ERROR RSC-020: URL 'https://lib.rs/crates/epubveri/ ' is not conforming [OEBPS/chapter1.xhtml:16:102]


EPUbCheck output:

Spoiler:
Code:
ERROR(PKG-006): final_test.epub(-1,-1): Mimetype file entry is missing or is not the first file in the archive.
USAGE(OPF-072): OEBPS/content.opf(8,18): Metadata element "dc:subject" is empty.
USAGE(OPF-072): OEBPS/content.opf(9,17): Metadata element "dc:source" is empty.
USAGE(OPF-072): OEBPS/content.opf(10,19): Metadata element "dc:relation" is empty.
USAGE(OPF-072): OEBPS/content.opf(11,19): Metadata element "dc:coverage" is empty.
ERROR(OPF-032): OEBPS/content.opf(30,95): Guide references "OEBPS/Images/bookcover.png" which is not a valid "OPS Content Document".
ERROR(RSC-005): OEBPS/toc.ncx(31,64): Error while parsing file: value of attribute "type" is invalid; must be equal to "front", "normal" or "special"


EPUBCheck didn't check the validity of the <dc:date> value, which, IMHO, is a bug. It also didn't make sure that the <html> tag language attributes were identical.

epubveri might never become an EPUBCheck drop-in replacement, but from what I've seen so far it's often more compliant with the EPUB spec than EPUBCheck is.

Attached Files
File Type: epub final_test.epub (28.2 KB, 2 views)
Doitsu is offline   Reply With Quote
Advert
Old Yesterday, 04:33 PM   #96
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,850
Karma: 24222221
Join Date: Dec 2010
Device: Kindle PW2
@KevinH

Out of curiosity, I tested an epub3 book with some elements that were at one point deprecated in XHTML.

Spoiler:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
  <title>Obsolete elements</title>
</head>

<body>
  <h1>Obsolete elements</h1>

  <p>This paragraph uses the <big>big</big> tag, which was deprecated in HTML5, but was still valid in XHTML 1.1.</p>

  <center><p>This paragraph uses <font color="red" size="+1">colored, resized font</font> text, along with <s>strikethrough (s)</s>, <strike>strikethrough (strike)</strike>, and <u>underlined</u> text.</p></center>
</body>
</html>


epubveri flagged: big, center, font and strike.

However, EPUBCheck only flagged big and center.

EPUBCheck output:

Spoiler:
Code:
Validating using EPUB version 3.3 rules.
ERROR(RSC-005): OEBPS/Text/Section0001.xhtml(12,35): Error while parsing file: element "big" not allowed here; expected the element end-tag, text, element "a", "abbr", "area", "audio", "b", "bdi", "bdo", "br", "button", "canvas", "cite", "code", "data", "datalist", "del", "dfn", "em", "embed", "epub:switch", "i", "iframe", "img", "input", "ins", "kbd", "label", "link", "map", "mark", "meta", "meter", "ns1:math", "ns2:svg", "object", "output", "picture", "progress", "q", "ruby", "s", "samp", "script", "select", "slot", "small", "span", "strong", "sub", "sup", "template", "textarea", "time", "u", "var", "video" or "wbr" (with xmlns:ns1="http://www.w3.org/1998/Math/MathML" xmlns:ns2="http://www.w3.org/2000/svg") or an element from another namespace
ERROR(RSC-005): OEBPS/Text/Section0001.xhtml(14,11): Error while parsing file: element "center" not allowed here; expected the element end-tag, text, element "a", "abbr", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "blockquote", "br", "button", "canvas", "cite", "code", "data", "datalist", "del", "details", "dfn", "dialog", "div", "dl", "em", "embed", "epub:switch", "epub:trigger", "fieldset", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "i", "iframe", "img", "input", "ins", "kbd", "label", "link", "main", "map", "mark", "menu", "meta", "meter", "nav", "ns1:math", "ns2:svg", "object", "ol", "output", "p", "picture", "pre", "progress", "q", "ruby", "s", "samp", "script", "search", "section", "select", "slot", "small", "span", "strong", "sub", "sup", "table", "template", "textarea", "time", "u", "ul", "var", "video" or "wbr" (with xmlns:ns1="http://www.w3.org/1998/Math/MathML" xmlns:ns2="http://www.w3.org/2000/svg") or an element from another namespace


Would you agree that this is an actual EPUBCheck bug?

Last edited by Doitsu; Yesterday at 04:35 PM.
Doitsu is offline   Reply With Quote
Old Yesterday, 06:38 PM   #97
Kayadelenium
Member
Kayadelenium rocks like Gibraltar!Kayadelenium rocks like Gibraltar!Kayadelenium rocks like Gibraltar!Kayadelenium rocks like Gibraltar!Kayadelenium rocks like Gibraltar!Kayadelenium rocks like Gibraltar!Kayadelenium rocks like Gibraltar!Kayadelenium rocks like Gibraltar!Kayadelenium rocks like Gibraltar!Kayadelenium rocks like Gibraltar!Kayadelenium rocks like Gibraltar!
 
Posts: 24
Karma: 100000
Join Date: Jul 2026
Location: Planet Earth
Device: Kobo Forma
Hi, I released two versions, but I noticed a few more bugs; I'm working on fixing them.

Your latest test and the other tests are passing successfully. I also fixed more issues than just those related to `big`, `center`, `font`, and `strike`.

I'll let you know and write a detailed post once I've completely cleared out the bugs.
Kayadelenium is online now   Reply With Quote
Old Yesterday, 08:28 PM   #98
Kayadelenium
Member
Kayadelenium rocks like Gibraltar!Kayadelenium rocks like Gibraltar!Kayadelenium rocks like Gibraltar!Kayadelenium rocks like Gibraltar!Kayadelenium rocks like Gibraltar!Kayadelenium rocks like Gibraltar!Kayadelenium rocks like Gibraltar!Kayadelenium rocks like Gibraltar!Kayadelenium rocks like Gibraltar!Kayadelenium rocks like Gibraltar!Kayadelenium rocks like Gibraltar!
 
Posts: 24
Karma: 100000
Join Date: Jul 2026
Location: Planet Earth
Device: Kobo Forma
v0.5.14 is out, with Doitsu’s empty-metadata case and a first pass at JSWolf’s CSS ones.

Doitsu — empty dc: metadata (EPUB 2). Fixed: an empty (or whitespace-only) Dublin Core element in an EPUB 2 package — an empty dcublisher, dc:creator, and so on — now draws OPF-072 at usage level, which is what EPUBCheck reports. dc:title and dc:date are left to their own existing rules. EPUB 2 only, and usage-level, so it never changes a book’s valid/invalid verdict — it just tells you the element is carrying nothing.

JSWolf — font-eight, x-small;;, and .h4a. One is a real find, two aren’t, and I’d rather say which than quietly ship all three.

font-eight (a typo for font-weight) is the real one: a property name CSS doesn’t define. The catch is that EPUBCheck doesn’t validate property names at all — it never flags an unknown property — so reporting it by default would be me inventing an error the authority hasn’t decided on, which is the one thing I’ve said I won’t do. So it’s there, but opt-in: run with --advisory and you get ADV-001: 'font-eight' is not a recognized CSS property, at the exact line and column, at usage severity (it never affects the exit code). Same for an unknown at-rule descriptor — a bogus @font-face descriptor is ADV-002. Off by default the output is byte-for-byte what it was.

Two things worth spelling out about how it decides “unknown”, because the failure mode of a property linter is false positives:

The known-property list is the union of the W3C “all properties” index and MDN’s property data — MDN carries the legacy aliases and SVG properties the W3C index omits (word-wrap, text-rendering, and friends), which were the false positives when I tried the W3C list alone. Vendor-prefixed (-webkit-…) and custom (--…) names are exempt.
It’s a distinct message family (ADV-…), deliberately not a CSS-0xx. Matching EPUBCheck on verdicts means not minting a code in its namespace for something it doesn’t define.

The other two I checked and don’t think are errors:

x-small;; — the doubled semicolon is an empty declaration, and CSS Syntax says to just discard it. It’s valid; EPUBCheck doesn’t flag it, and neither do I. (If you meant something else by it, show me the whole rule and I’ll look again.)

.h4a — a class selector named h4a is a perfectly legal selector; there’s nothing wrong with it to report. If the intent was a different class and this is a typo, that’s a spelling question a validator can’t see — the selector itself is valid CSS.

The property-name check rides on a separate small library I’ve been building alongside this (styloria, a pure-Rust CSS parser); the validation is the part that’s new in it. Value- level checking — whether color: 3px is nonsense — is a much bigger job and isn’t in yet.

And there’s more to come — this is a first pass, not the finished picture. A few improvements are already lined up: the advisory checks only run from the command line for now (the in-browser/WASM build can’t opt in yet), value-level CSS checking is the natural next layer, and the deeper content-model work continues. I’d rather ship these in small, verifiable steps than announce a big list, so I’ll post them as they land — and this thread has been better than any roadmap for deciding what’s worth doing next.

Binaries: v0.5.14 release page. Keep them coming — the font-eight case is exactly the kind of thing I’d never have written a test for on my own.
Kayadelenium is online now   Reply With Quote
Old Today, 04:24 AM   #99
Kayadelenium
Member
Kayadelenium rocks like Gibraltar!Kayadelenium rocks like Gibraltar!Kayadelenium rocks like Gibraltar!Kayadelenium rocks like Gibraltar!Kayadelenium rocks like Gibraltar!Kayadelenium rocks like Gibraltar!Kayadelenium rocks like Gibraltar!Kayadelenium rocks like Gibraltar!Kayadelenium rocks like Gibraltar!Kayadelenium rocks like Gibraltar!Kayadelenium rocks like Gibraltar!
 
Posts: 24
Karma: 100000
Join Date: Jul 2026
Location: Planet Earth
Device: Kobo Forma
v0.5.15 is out, and it’s the one I’d been putting off: the XHTML content model is now validated properly — the deepest, hardest part of matching EPUBCheck, and the part I said from the start I’d leave for last.

Read this first if you validate your own books: this release changes verdicts. A book that nests elements illegally, or points an attribute at an id that isn’t there, now comes back invalid (RSC-005) where 0.5.14 passed it. That’s not a regression — it’s catching real errors EPUBCheck catches too — but if a book that was green suddenly isn’t, this is almost certainly why. Check the new message before assuming something broke.

What’s actually new, in three parts:

Nesting rules — the constraints a grammar structurally can’t state, because they’re about a node’s ancestors, not its immediate contents. An <a> inside another <a>; interactive content (a <button>, a <select>, an <audio controls>) inside an <a> or <button>; a <form> inside a <form>; <header>/<footer> nested in each other; a <label> in a <label>. Element placement — the <span> and loose text directly under <body> that Doitsu reported way back — was already caught by the grammar; this is the other half.

Broken references — every id an attribute points at now has to exist, and where the reference is typed, point at the right kind of element: aria-describedby / aria-labelledby / aria-controls and friends must resolve; <label for> must target something labelable; headers must name <th> cells in the same table; aria-activedescendant must be an actual descendant. This is the one I think matters most day to day — a dangling aria-describedby is a real accessibility bug and easy to introduce by editing.

A handful of smaller structural rules — duplicate <map> names, a <select> with two selected options, more than one <meta charset>, and so on.

All of it is EPUB 3, all reported as RSC-005 at the offending element with a line and column, and all verdict-matched to EPUBCheck — I check each rule fires on the mistake and stays quiet on the valid shape, and the whole EPUBCheck test corpus is unchanged. Thanks to Doitsu for the original report (thread post #54); this closes it out.

One other thing, for the CSS crowd: the opt-in --advisory check from 0.5.14 — the one that flags a misspelled CSS property like font-eight — now works in the in-browser (WASM) build too, not just the command line. Still opt-in, still never changes a book’s verdict.

Binaries: v0.5.15 release page. As always, the fastest way to find the next bug is to point this at a book EPUBCheck disagrees with and tell me — that’s been worth more than any test I’d have written on my own.
Kayadelenium is online now   Reply With Quote
Old Today, 05:22 AM   #100
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,850
Karma: 24222221
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Kayadelenium View Post
v0.5.15 is out, and it’s the one I’d been putting off: the XHTML content model is now validated properly — the deepest, hardest part of matching EPUBCheck, and the part I said from the start I’d leave for last.
Thanks for adding this feature. You can test it with this MR epub.

It contains one paragraph with a misplaced </p> tag.

<p>»Auf Wiedersehen, <i>Jarl</i>!«</p>, antwortete der junge Mann schaudernd, denn das war das erste Mal, dass er den heiligen Namen Gottes von den Lippen des Kapitäns hörte.

epubveri reports this issue twice. Once with a reference to the actual line and once with a reference to the <body> tag.

ERROR RSC-005: text is not allowed directly in "body"; EPUB 2 requires block-level content
ERROR RSC-005: character data is not allowed in element "body"

IMHO, character data is not allowed in element "body" maybe technically correct, but might not be understood by the average ebook creator.

How about:

Bare/unwrapped/stray text found in element "body"

or:

Text found outside any tag.
Doitsu is offline   Reply With Quote
Old Today, 05:47 AM   #101
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 84,195
Karma: 153715495
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Kayadelenium View Post
.h4a — a class selector named h4a is a perfectly legal selector; there’s nothing wrong with it to report. If the intent was a different class and this is a typo, that’s a spelling question a validator can’t see — the selector itself is valid CSS.
It's not .h4a. It's just h4a (no period). There is no h4a.

Thank you for diving into the CSS. It's no good when epubcheck says an ePub is good to go and it's not because the CSS has mistakes.
JSWolf is offline   Reply With Quote
Old Today, 05:50 AM   #102
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 84,195
Karma: 153715495
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Doitsu View Post
How about:

Bare/unwrapped/stray text found in element "body"

or:

Text found outside any tag.
How about:

Bare/unwrapped/stray text in element "body" is outside any tag.
JSWolf is offline   Reply With Quote
Old Today, 11:56 AM   #103
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,800
Karma: 7500000
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by Doitsu View Post
@KevinH

Out of curiosity, I tested an epub3 book with some elements that were at one point deprecated in XHTML.

Spoiler:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
  <title>Obsolete elements</title>
</head>

<body>
  <h1>Obsolete elements</h1>

  <p>This paragraph uses the <big>big</big> tag, which was deprecated in HTML5, but was still valid in XHTML 1.1.</p>

  <center><p>This paragraph uses <font color="red" size="+1">colored, resized font</font> text, along with <s>strikethrough (s)</s>, <strike>strikethrough (strike)</strike>, and <u>underlined</u> text.</p></center>
</body>
</html>


epubveri flagged: big, center, font and strike.

However, EPUBCheck only flagged big and center.

EPUBCheck output:

Spoiler:
Code:
Validating using EPUB version 3.3 rules.
ERROR(RSC-005): OEBPS/Text/Section0001.xhtml(12,35): Error while parsing file: element "big" not allowed here; expected the element end-tag, text, element "a", "abbr", "area", "audio", "b", "bdi", "bdo", "br", "button", "canvas", "cite", "code", "data", "datalist", "del", "dfn", "em", "embed", "epub:switch", "i", "iframe", "img", "input", "ins", "kbd", "label", "link", "map", "mark", "meta", "meter", "ns1:math", "ns2:svg", "object", "output", "picture", "progress", "q", "ruby", "s", "samp", "script", "select", "slot", "small", "span", "strong", "sub", "sup", "template", "textarea", "time", "u", "var", "video" or "wbr" (with xmlns:ns1="http://www.w3.org/1998/Math/MathML" xmlns:ns2="http://www.w3.org/2000/svg") or an element from another namespace
ERROR(RSC-005): OEBPS/Text/Section0001.xhtml(14,11): Error while parsing file: element "center" not allowed here; expected the element end-tag, text, element "a", "abbr", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "blockquote", "br", "button", "canvas", "cite", "code", "data", "datalist", "del", "details", "dfn", "dialog", "div", "dl", "em", "embed", "epub:switch", "epub:trigger", "fieldset", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "i", "iframe", "img", "input", "ins", "kbd", "label", "link", "main", "map", "mark", "menu", "meta", "meter", "nav", "ns1:math", "ns2:svg", "object", "ol", "output", "p", "picture", "pre", "progress", "q", "ruby", "s", "samp", "script", "search", "section", "select", "slot", "small", "span", "strong", "sub", "sup", "table", "template", "textarea", "time", "u", "ul", "var", "video" or "wbr" (with xmlns:ns1="http://www.w3.org/1998/Math/MathML" xmlns:ns2="http://www.w3.org/2000/svg") or an element from another namespace


Would you agree that this is an actual EPUBCheck bug?
Yes, it seems like it but whatwg (the living html spec group) only removed support for big, font, and center, whereas strike afaict is still just deprecated.

The funny thing is most modern browsers do not exactly implement the whatwg standard and they purposefully keep old tags around (ie. they deprecate them but do not remove them) to maintain pretty full backwards compatibility.

If the browsers did not do that, that whole whatwg house of cards would come down since a living standard moves too fast to be truly useful for anything over 5 years old.

For example our gumbo implementation of the whatwg spec includes all of them.
And luckily chrome / QtWebEngine has kept support for most of them. Because without that backwards compatibility, Sigil would soon have to drop support for most epub2 epubs and many early epub3 epubs since Preview would fail.

Browser devs luckily seem to understand backwards compatibility is very useful. Without isit most epub ereaders that support epub2 would be toast as the same webengine/webkit is used to display both epub2 and epub3.

Last edited by KevinH; Today at 01:43 PM.
KevinH is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
EPUBCheck v4.2.6 jhowell ePub 0 06-30-2021 03:49 PM
EPUBCheck v4.2.5 jhowell ePub 0 03-23-2021 09:45 AM
EPUBCheck v4.2.4 jhowell ePub 3 06-24-2020 09:51 AM
EPUBCheck v4.1.1 Doitsu ePub 2 03-18-2019 10:39 AM
Web-based epubcheck upgraded to epubcheck 1.0.5 kjk ePub 4 02-09-2010 09:53 PM


All times are GMT -4. The time now is 04:49 PM.


MobileRead.com is a privately owned, operated and funded community.