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:
parent
9aa31157d5
commit
05e78dabdb
6 changed files with 42 additions and 6 deletions
7
Tests/LibWeb/Text/input/input-readonly.html
Normal file
7
Tests/LibWeb/Text/input/input-readonly.html
Normal 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>
|
7
Tests/LibWeb/Text/input/textarea-readonly.html
Normal file
7
Tests/LibWeb/Text/input/textarea-readonly.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue