mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-05 14:42:50 +02:00
LibWeb: Implement setRangeText for input and textarea elements
This method replaces range of text in its respective element with a new string (cherry picked from commit 2f5b0707163db5df5ff2d25dc329e70d8f54a7f1)
This commit is contained in:
committed by
Nico Weber
parent
13ea62f247
commit
01324df21e
@@ -206,6 +206,13 @@ String HTMLTextAreaElement::api_value() const
|
||||
return *m_api_value;
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#concept-textarea/input-relevant-value
|
||||
WebIDL::ExceptionOr<void> HTMLTextAreaElement::set_relevant_value(String const& value)
|
||||
{
|
||||
set_value(value);
|
||||
return {};
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-elements.html#dom-textarea-textlength
|
||||
u32 HTMLTextAreaElement::text_length() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user