View Single Post
Old 12-15-2023, 12:56 PM   #8
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,557
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
If you're stuck with EPUB2, you're stuck with XHTML 1.1 too (or with whatever subset the reading application supports).

Anyway, about HTML 5:

Quote:
Originally Posted by nabsltd View Post
Google Books seems to be expecting "phrasing content", but there is no explicit rule that says that "flow content" elements cannot appear inside of other "flow content" elements.
The p element says (https://html.spec.whatwg.org/multipa...he-p-element): "Content model: Phrasing content.", where "Content model" means (https://html.spec.whatwg.org/#concep...ontent-model): "A normative description of what content must be included as children and descendants of the element."

Whereas the div element says (https://html.spec.whatwg.org/multipa...-div-element): "Content model: [...] If the element is not a child of a dl element: flow content."

So it seems to me there's still something special about the p element, it can only contain "phrasing content" and not "flow content", as the div element can.
Jellby is offline   Reply With Quote