2011-03-25 Maciej Stachowiak <mjs@apple.com>
[WebKit-https.git] / LayoutTests / mathml / wbr-in-mroot-crash.html
1 <!DOCTYPE html>
2 <html>
3 <script>
4 if (window.layoutTestController)
5     layoutTestController.dumpAsText();
6 </script>
7 <body>
8 <p>This test shouldn't crash.</p>
9 <p><math><mroot><mrow><mroot><mrow><mroot><mrow><mroot><mrow><mroot><mrow><mroot><mrow><mroot><mrow id="insertion-point"></mrow></mroot></mrow></mroot></mrow></mroot></mrow></mroot></mrow></mroot></mrow></mroot></mrow></mroot></math></p></body></html>
10 <script>
11 var elem = document.getElementById("insertion-point"); 
12 var parent = elem.parentNode;
13 var wbr = document.createElement("wbr");
14 parent.insertBefore(wbr, elem);
15 </script>