1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:57:34 +00:00

LibWeb: Add input and textarea minlength and maxlength support

This commit is contained in:
Bastiaan van der Plaat 2024-03-01 08:49:04 +01:00 committed by Tim Flynn
parent 9b645d20b9
commit a2f101c10b
15 changed files with 162 additions and 5 deletions

View file

@ -0,0 +1 @@
Hello

View file

@ -0,0 +1 @@
Hello

View file

@ -0,0 +1,7 @@
<input id="input" type="text" maxlength="5"><script src="include.js"></script><script>
test(() => {
const input = document.getElementById('input');
internals.sendText(input, 'Hello World!');
internals.commitText();
});
</script>

View file

@ -0,0 +1,7 @@
<textarea id="textarea" maxlength="5"></textarea><script src="include.js"></script><script>
test(() => {
const textarea = document.getElementById('textarea');
internals.sendText(textarea, 'Hello World!');
internals.commitText();
});
</script>