ladybird/Tests/LibWeb/Text/input/HTML/select-setValue-after-construction.html

14 lines
413 B
HTML
Raw Normal View History

2025-03-18 19:28:35 +01:00
<!DOCTYPE html>
<script src="../include.js"></script>
<script>
test(() => {
let select = document.createElement("select");
let option = document.createElement("option");
option.setAttribute("selected", "selected");
option.setAttribute("value", "foo");
select.appendChild(option);
select.value = "foo";
println("PASS"); // Didn't crash
});
</script>