Closed tthkbw closed 2 years ago
Thanks for the report 😊 Are you able to send us a file sample to help us reproduce the issue? Also, have you checked with the HTML validator? (it may provide more context).
Just going by the error message, it appears the div
is embedded where only phrasing content is allowed.
Using markup like this <p> ... <div> ... </div> ... </p>
would generate this error, for example.
Thanks for the quick feedback. I am traveling the rest of this week, so can only take the time for a brief reply.
@mattgarrish - I think your hint may have led me to the problem, which, as I expected, is with my code.
Although I routinely create nested div elements, not all of them generate errors from eubcheck. I now see that those that do are nesting the div elements within italic elements, like this:
<div>some stuff<i>some italic stuff.<div>my added div</div></i></div>
That’s my bug, and I’ll fix it next week. I’ll report back then.
Okay, so I really couldn’t leave this alone. I found a quick fix in my code and I am now generating error-free epubs again.
Thanks for the help, and for epubcheck.
OK thanks for confirming! I'm closing this issue as invalid
(not a bug in EPUBCheck).
I have created an epub 3 file that contains nested
<div>
elements. epubcheck throws errors for all of these:These errors do not affect the display of the added nested
<div>
element in ebook readers I have tested (limited to Calibre and Apple Books at this point).Nested
<div>
is allowed in html, and I don't find anything about not allowing them in epub 3.What am I missing?