Newer
Older
minerva / Tests / LibWeb / Text / input / HTML / HTMLSelectElement-with-detached-option.html
@minerva minerva on 13 Jul 432 bytes Initial commit
<!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>