mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-01 16:02:53 +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
|
@ -86,6 +86,9 @@ public:
|
|||
|
||||
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#concept-textarea/input-relevant-value
|
||||
virtual String relevant_value() override { return api_value(); }
|
||||
virtual WebIDL::ExceptionOr<void> set_relevant_value(String const& value) override;
|
||||
|
||||
virtual void set_dirty_value_flag(bool flag) override { m_dirty_value = flag; }
|
||||
|
||||
u32 text_length() const;
|
||||
|
||||
|
@ -117,6 +120,8 @@ public:
|
|||
String selection_direction_binding() const;
|
||||
void set_selection_direction_binding(String direction);
|
||||
|
||||
void set_dirty_value_flag(Badge<FormAssociatedElement>, bool flag) { m_dirty_value = flag; }
|
||||
|
||||
protected:
|
||||
void selection_was_changed() override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue