summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/dom/nodes/node-appendchild-crash.html
blob: 245de87f2d36ed39eec30cd627aa3c21bd4ff115 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="author" href="mailto:masonf@chromium.org">
<link rel="help" href="https://crbug.com/1210480">
<meta name="assert" content="The renderer should not crash.">

<iframe id=iframe></iframe>
<select>Text Node
  <option id=option></option>
</select>

<script>
  window.onload=function() {
    iframe.addEventListener('DOMNodeInsertedIntoDocument',function() {});
    option.remove();
    iframe.contentDocument.body.appendChild(document.body);
  }
</script>