mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 02:05:07 +02:00
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:
committed by
Tim Ledbetter
parent
2d7547921b
commit
1b74104c17
Notes:
github-actions[bot]
2024-09-10 15:13:57 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/1b74104c177 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1360 Reviewed-by: https://github.com/trflynn89 ✅
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user