Unreviewed, fix test failures after r239698.
[WebKit-https.git] / LayoutTests / mathml / arbitrary-markup.html
1 <html xmlns='http://www.w3.org/1999/xhtml'>
2 <head>
3     <title>MathML: inserting arbitrary markup</title>
4     <script>
5         if (window.testRunner)
6         testRunner.dumpAsText();
7     </script>
8 </head>
9 <body>
10 <table>
11     <tr>
12         <td><math id="math"></math></td>
13     </tr>
14     <tr>
15         <td>
16             <math xmlns="http://www.w3.org/1998/Math/MathML">
17                 <msub>
18                     <mi id="mi1">a</mi>
19                     <mi id="mi2">b</mi>
20                 </msub>
21             </math>
22         </td>
23     </tr>
24 </table>
25 <script>
26 var elem = document.getElementById("mi2"); 
27 var parent = elem.parentNode;
28 var new_elem = document.createElement("wbr");
29 parent.insertBefore(new_elem, elem);
30 node = document.getElementById("math").appendChild(document.createElement("object")).lastElementChild;
31 elem = document.getElementById("mi1"); 
32 parent = elem.parentNode;
33 new_elem = document.createElement("strong");
34 parent.insertBefore(new_elem, elem);
35 parent.removeChild(elem);
36 </script>
37 </body>
38 </html>