Files
serenity/Tests/LibWeb/Text/input/HTML/HTMLInputElement-select-crash.html
Tim Ledbetter a77b65d46a LibWeb: Don't attempt to set selection if control has no selectable text
(cherry picked from commit 2c8fb4957871bca5694fc9e9f8932c9769967bd1)
2024-11-12 10:45:53 -05:00

12 lines
308 B
HTML

<!DOCTYPE html>
<script src="../include.js"></script>
<script>
test(() => {
const inputElement = document.createElement("input");
inputElement.type = "color";
inputElement.value = "#000000";
inputElement.select();
println("PASS (didn't crash)");
});
</script>