1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:27:43 +00:00

LibWeb: Add textarea readonly support

This commit is contained in:
Bastiaan van der Plaat 2024-02-26 19:12:32 +01:00 committed by Tim Flynn
parent 9aa31157d5
commit 05e78dabdb
6 changed files with 42 additions and 6 deletions

View file

@ -0,0 +1,7 @@
<input id=input type=text readonly><script src="include.js"></script><script>
test(() => {
const input = document.getElementById("input");
internals.sendText(input, "wfh :^)");
internals.commitText();
});
</script>

View file

@ -0,0 +1,7 @@
<textarea id=textarea readonly></textarea><script src="include.js"></script><script>
test(() => {
const textarea = document.getElementById("textarea");
internals.sendText(textarea, "wfh :^)");
internals.commitText();
});
</script>