summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/form-added-to-table.html
blob: 209ec2595a3fb357993cee0cd1ba2c32db98aa21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<html>
<head>
<script>
function loaded() {
    var selection = window.getSelection();
    var range =  document.createRange();
    range.selectNode(document.getElementById("selectMe"));
    selection.addRange(range);
  
    var table = document.createElement("table");
    document.getElementById('form').appendChild(table);
}
</script>
</head>
<body onload="loaded()">
<table><tr><td id="selectMe">This test passes if it does not crash.</td></tr><form style="display:inline" id="form"></form></table>
</body>
</html>