LibWeb: Make input type state change handling specification compliant

This change ensures that the value sanitization algorithm is run and
the text cursor is set to the correct position when the type attribute
of an input is changed.
This commit is contained in:
Tim Ledbetter
2024-09-10 09:24:00 +01:00
committed by Tim Ledbetter
parent 2d7547921b
commit 1b74104c17
Notes: github-actions[bot] 2024-09-10 15:13:57 +00:00
6 changed files with 138 additions and 13 deletions

View File

@@ -5,6 +5,8 @@
const inputElement = document.getElementById("input-element");
const allInputTypes = [
"number",
"range",
"hidden",
"text",
"search",
@@ -17,8 +19,6 @@
"week",
"time",
"datetime-local",
"number",
"range",
"color",
"checkbox",
"radio",