-
Notifications
You must be signed in to change notification settings - Fork 402
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove restrictions on MathML annotation-xml
- Content MathML is still restricted by the rules in the spec: https://w3c.github.io/publ-epub-revision/epub32/spec/epub-contentdocs.html#sec-xhtml-mathml-conf-content - Presentation MathML is allowed - SVG is allowed - MathML descendants are allowed in HTML annotations Fix #1024 See also w3c/epub-specs#1212 and w3c/epub-specs#1249
- Loading branch information
Showing
8 changed files
with
49 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/test/resources/30/single/xhtml/valid/mathml-annotationxml-svg.xhtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<title>Test</title> | ||
<meta charset="UTF-8"/> | ||
</head> | ||
<body> | ||
<math xmlns="http://www.w3.org/1998/Math/MathML"> | ||
<semantics> | ||
<mfrac> | ||
<msqrt> | ||
<mtext>a</mtext> | ||
</msqrt> | ||
<mi>b</mi> | ||
</mfrac> | ||
<annotation-xml encoding="SVG1.1" name="alternate-representation"> | ||
<svg viewBox="0 0 1200 400" xmlns="http://www.w3.org/2000/svg" version="1.1"> | ||
<title>Test</title> | ||
<desc>Rectangle</desc> | ||
<rect x="10" y="20" width="75" height="30" style="stroke: #333366; fill: #6666cc"/> | ||
</svg> | ||
|
||
</annotation-xml> | ||
</semantics> | ||
</math> | ||
</body> | ||
</html> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters