mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-03 07:32:00 +00:00
`Node::shadow_including_root()` was missing a null check, which caused a crash when manipulating a select element, whose option elements were initially detached.
13 lines
432 B
HTML
13 lines
432 B
HTML
<!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>
|