ladybird/Tests/LibWeb/Text/input/HTML/HTMLSelectElement-with-detached-option.html

14 lines
432 B
HTML
Raw Normal View History

<!DOCTYPE html>
<script src="../include.js"></script>
<select></select>
<script>
test(() => {
const selectElement = document.querySelector("select");
const optionElement = document.createElement("option");
optionElement.innerHTML = "option text"
selectElement.appendChild(optionElement);
document.body.removeChild(selectElement);
println("PASS (didn't crash)");
});
</script>