mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibWeb: Implement setRangeText for input and textarea elements
This method replaces range of text in its respective element with a new string
This commit is contained in:
parent
206262cd55
commit
2f5b070716
Notes:
github-actions[bot]
2024-08-31 09:50:48 +00:00
Author: https://github.com/tcl3
Commit: 2f5b070716
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1223
Reviewed-by: https://github.com/awesomekling
10 changed files with 217 additions and 4 deletions
|
@ -16,6 +16,14 @@ enum EnctypeAttribute {
|
|||
"text/plain"
|
||||
};
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#selectionmode
|
||||
enum SelectionMode {
|
||||
"select",
|
||||
"start",
|
||||
"end",
|
||||
"preserve"
|
||||
};
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/semantics.html#htmlformelement
|
||||
[Exposed=Window, LegacyOverrideBuiltIns, LegacyUnenumerableNamedProperties]
|
||||
interface HTMLFormElement : HTMLElement {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue