Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVG title element restricted to html elements #1342

Closed
mattgarrish opened this issue Jul 14, 2022 · 0 comments
Closed

SVG title element restricted to html elements #1342

mattgarrish opened this issue Jul 14, 2022 · 0 comments
Labels
spec: EPUB 3.3 Impacting the support of EPUB 3.3 status: completed Work completed, can be closed
Milestone

Comments

@mattgarrish
Copy link
Member

mattgarrish commented Jul 14, 2022

The restriction on the SVG title element has been clarified and loosened slightly so that any HTML elements can be used in it (but only HTML elements).

Epubcheck's implementation of the older restriction to phrasing content isn't working as expected right now, regardless. You can't mix text and markup. If the title isn't purely text, then all the content has to be inside an html element for epubcheck not to throw an error.

In other words, this is valid:

<title><span xmlns="http://www.w3.org/1999/xhtml"> ... </span></title>

But this causes errors:

<title>foo <em xmlns="http://www.w3.org/1999/xhtml">bar</em> baz</title>

So the changes needed are to allow any html elements and also allow mixed text and element content.

See w3c/epub-specs#2358

@mattgarrish mattgarrish added the spec: EPUB 3.3 Impacting the support of EPUB 3.3 label Jul 14, 2022
@rdeltour rdeltour added this to the v5.0.0-beta milestone Sep 22, 2022
@rdeltour rdeltour added the status: in progress The issue is being implemented by the development team label Nov 18, 2022
@rdeltour rdeltour added status: completed Work completed, can be closed and removed status: in progress The issue is being implemented by the development team labels Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spec: EPUB 3.3 Impacting the support of EPUB 3.3 status: completed Work completed, can be closed
Projects
None yet
Development

No branches or pull requests

2 participants