Bootlin logo

Elixir Cross Referencer

1
2
3
4
5
6
7
8
<p>This test shouldn't crash when you pick something from select, even though it removes itself.
</p>
<select id="foo" onchange='sel.parentNode.removeChild(sel)'>
<option>Boom</option>
<option>Shouldn't crash when you pick this.</option>
</select>
<script>
var sel = document.getElementById("foo");