summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp
diff options
context:
space:
mode:
authorLuke Wilde <lukew@serenityos.org>2022-12-30 23:00:11 +0000
committerTim Flynn <trflynn89@pm.me>2022-12-30 21:56:54 -0500
commit1011067a60d6d6284c5ffc104d5a3c3dcc7f9900 (patch)
tree1131e62914bd0fd5b7c5c82b4f4a2fd9c1f67dbc /Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp
parent6d188d72c0cbcd04df6b3bb5fe3c7b56d7fcd8ef (diff)
downloadserenity-1011067a60d6d6284c5ffc104d5a3c3dcc7f9900.zip
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.
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp')
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp
index 3c8316930b..ba0c9a1c15 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp
@@ -837,4 +837,11 @@ i32 HTMLInputElement::default_tab_index_value() const
return 0;
}
+// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-textarea/input-setselectionrange
+WebIDL::ExceptionOr<void> HTMLInputElement::set_selection_range(u32 start, u32 end, DeprecatedString const& direction)
+{
+ dbgln("(STUBBED) HTMLInputElement::set_selection_range(start={}, end={}, direction='{}'). Called on: {}", start, end, direction, debug_description());
+ return {};
+}
+
}