mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
LibWeb: Don't attempt to set selection if control has no selectable text
This commit is contained in:
committed by
Jelle Raaijmakers
parent
8d6f36f8d6
commit
2c8fb49578
Notes:
github-actions[bot]
2024-09-09 09:05:03 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/2c8fb495787 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1337
@@ -0,0 +1,11 @@
|
||||
<!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>
|
||||
Reference in New Issue
Block a user