Skip to content

Commit

Permalink
test: check that MathML deprecated features are not reported
Browse files Browse the repository at this point in the history
Fix #1326
  • Loading branch information
rdeltour committed Nov 27, 2022
1 parent 8eb8492 commit a42b070
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -849,6 +849,11 @@ Feature: EPUB 3 — Content Documents — XHTML
When checking document 'mathml-unprefixed-valid.xhtml'
Then no errors or warnings are reported

@spec @xref:sec-xhtml-deviations
Scenario: Allow MathML deprecated features
When checking EPUB 'mathml-deprecated-valid.xhtml'
Then no errors or warnings are reported

Scenario: Verify MathML markup without alternative text
Given the reporting level set to usage
When checking document 'mathml-noalt-usage.xhtml'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="utf-8" />
<title>MathML</title>
</head>
<body>
<section>
<h2>MathML Test</h2>
<math xmlns="http://www.w3.org/1998/Math/MathML" alttext="formula" mode="inline">
<mfrac other="something">
<mo> &#x2146;<!--DOUBLE-STRUCK ITALIC SMALL D--></mo>
<mrow>
<mo> &#x2146;<!--DOUBLE-STRUCK ITALIC SMALL D--></mo>
<mi fontweight="bold"> x </mi>
</mrow>
</mfrac>
</math>
</section>
</body>
</html>

0 comments on commit a42b070

Please sign in to comment.