Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / tables / mozilla / bugs / bug51140.html
blob1f3fcba45010b36bafeb894273c64d41ed4f6346
1 <html>
2 <body>
4 <script>
6 function note() {
7 var l = document.createElement("div");
9 l.innerHTML="<s>jmd</s> jtr was here.";
10 l.setAttribute("id", "popup");
11 l.style.position = "absolute";
13 // afaict only 'tr' causes a crash.
14 // 'td', 'table', 'a1' don't.
15 document.getElementById('tr').appendChild(l);
18 function closepopup() {
19 var p = document.getElementById("popup");
20 if (p && p.parentNode) {
21 // crashes on following line
22 p.parentNode.removeChild(p);
26 </script>
28 <a id='a1' href='' onclick=" note(); return false;">note</a>
29 <a id='a2' href='' onclick="closepopup(); return false;">closepopup</a>
31 <table id='table' border='1'>
32 <tr id='tr'>
33 <!-- this div is just here to demonstrate that the crash
34 only happens with a dhtml-generated div -->
35 <div id="popup" style="position:absolute;">
36 div
37 </div>
38 <td id='td'>
39 table
40 </td>
41 </tr>
42 </table>
44 </body>
45 </html>