mo-invisibleoperators-2.html (1502B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <head> 4 <link rel="match" href="mo-invisibleoperators-2-ref.html"> 5 <link rel="help" href="https://w3c.github.io/mathml-core/#operator-fence-separator-or-accent-mo"> 6 <link rel="help" href="This test verifies proper invalidation after dynamically replacing the text of invisible operators."> 7 <meta name="assert" content="https://bugzilla.mozilla.org/show_bug.cgi?id=522393"> 8 </head> 9 <body> 10 <math> 11 <mo id="mo1">⁡<!-- FUNCTION APPLICATION --></mo> 12 </math> 13 <p> 14 <math> 15 <mo id="mo2">⁢<!-- INVISIBLE TIMES --></mo> 16 </math> 17 <p> 18 <math> 19 <mo id="mo3">⁣<!-- INVISIBLE SEPARATOR --></mo> 20 </math> 21 <p> 22 <math> 23 <mo id="mo4">⁤<!-- INVISIBLE PLUS --></mo> 24 </math> 25 <p> 26 <!-- Test preferred width after dynamic change--> 27 <table> 28 <tr> 29 <td style="border: 1px solid;"> 30 <math> 31 <mo id="mo5">⁡</mo> 32 </math> 33 </td> 34 </tr> 35 </table> 36 <script type="text/javascript"> 37 function doTest() { 38 document.getElementById('mo1').firstChild.data = '1'; 39 document.getElementById('mo2').firstChild.data = '2'; 40 document.getElementById('mo3').firstChild.data = '3'; 41 document.getElementById('mo4').firstChild.data = '4'; 42 document.getElementById('mo5').firstChild.data = 'x'; 43 document.documentElement.removeAttribute("class"); 44 } 45 window.addEventListener("TestRendered", doTest); 46 </script> 47 </body> 48 </html>