Skip to content
Permalink
Browse files

MathML dynamic fraction test: Use <mn> for numbers. (#17227)

  • Loading branch information...
fred-wang committed Jun 7, 2019
1 parent e59b910 commit 83eaaf38dc0a7412583689397df590e55e525564
@@ -8,8 +8,8 @@
<p>This test passes if you see a fraction 1/3.</p>
<math>
<mfrac>
<mi>1</mi>
<mi>3</mi>
<mn>1</mn>
<mn>3</mn>
</mfrac>
</math>
</body>
@@ -12,10 +12,10 @@
// force initial layout so we're sure what we're testing against
document.documentElement.getBoundingClientRect();
var mi3 = document.createElementNS("http://www.w3.org/1998/Math/MathML","mi");
mi3.appendChild(document.createTextNode("3"));
document.getElementsByTagName("mfrac")[0].appendChild(mi3);
document.getElementById("mi2").remove();
var mn3 = document.createElementNS("http://www.w3.org/1998/Math/MathML","mn");
mn3.appendChild(document.createTextNode("3"));
document.getElementsByTagName("mfrac")[0].appendChild(mn3);
document.getElementById("mn2").remove();
document.documentElement.classList.remove('reftest-wait');
});
@@ -25,8 +25,8 @@
<p>This test passes if you see a fraction 1/3.</p>
<math>
<mfrac>
<mi>1</mi>
<mi id="mi2">2</mi>
<mn>1</mn>
<mn id="mn2">2</mn>
</mfrac>
</math>
</body>

0 comments on commit 83eaaf3

Please sign in to comment.
You can’t perform that action at this time.