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

feat: allow SVG/MathML doctype declarations #1367

Merged
merged 1 commit into from
Dec 1, 2022

Conversation

rdeltour
Copy link
Member

@rdeltour rdeltour commented Dec 1, 2022

EPUB 3.3. now allows a reserved set of external identifiers in doctype declarations of documents with select media types.

See: https://www.w3.org/TR/epub-33/#app-identifiers-allowed

This commit:

  • adds those as special cases to the XML parser code
  • totally removes entity fetching for EPUB 3.3
  • keeps forbidding external entities in the internal subset

Fix #1192, Fix #1114

EPUB 3.3. now allows a reserved set of external identifiers in doctype
declarations of documents with select media types.

See: https://www.w3.org/TR/epub-33/#app-identifiers-allowed

This commit:
- adds those as special cases to the XML parser code
- totally removes entity fetching for EPUB 3.3
- keeps forbidding external entities in the internal subset

Fix #1192, Fix #1114
@rdeltour rdeltour added this to the v5.0.0-beta milestone Dec 1, 2022
@rdeltour rdeltour self-assigned this Dec 1, 2022
@mattgarrish
Copy link
Member

The NCX doctype is also allowed per https://www.w3.org/TR/epub-33/#app-identifiers-allowed

Or are you adding that in a separate PR?

@rdeltour
Copy link
Member Author

rdeltour commented Dec 1, 2022

Or are you adding that in a separate PR?

yes, that was only introduced in v5.0.0-beta-3, in f3e5f67

Base automatically changed from release/v5.0.0-alpha-1 to release/v5.0.0 December 1, 2022 21:41
@rdeltour rdeltour merged commit 6dc3776 into release/v5.0.0 Dec 1, 2022
@rdeltour rdeltour deleted the feat/allow-svg+mathml-doctype branch December 1, 2022 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants