mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 23:59:49 +00:00
LibWeb: Stub HTMLInputElement.setSelectionRange
Required by Twitter to move the input caret of the 2FA <input> element to the start. However, we don't currently handle individual <input> element selections.
This commit is contained in:
parent
6d188d72c0
commit
1011067a60
Notes:
sideshowbarker
2024-07-17 04:10:16 +09:00
Author: https://github.com/Lubrsi
Commit: 1011067a60
Pull-request: https://github.com/SerenityOS/serenity/pull/16735
Reviewed-by: https://github.com/awesomekling ✅
3 changed files with 11 additions and 0 deletions
|
@ -87,6 +87,8 @@ public:
|
|||
// https://html.spec.whatwg.org/multipage/input.html#update-the-file-selection
|
||||
void update_the_file_selection(JS::NonnullGCPtr<FileAPI::FileList>);
|
||||
|
||||
WebIDL::ExceptionOr<void> set_selection_range(u32 start, u32 end, DeprecatedString const& direction);
|
||||
|
||||
WebIDL::ExceptionOr<void> show_picker();
|
||||
|
||||
// ^EventTarget
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue