mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-03 17:58:49 +00:00
LibWeb: Follow spec steps to set the selectionDirection attribute value
This commit is contained in:
parent
e0cd2edccb
commit
d0b97873d4
Notes:
github-actions[bot]
2024-10-04 17:43:25 +00:00
Author: https://github.com/tcl3
Commit: d0b97873d4
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1625
10 changed files with 68 additions and 4 deletions
|
@ -329,9 +329,10 @@ String HTMLTextAreaElement::selection_direction_binding() const
|
|||
return selection_direction().value();
|
||||
}
|
||||
|
||||
void HTMLTextAreaElement::set_selection_direction_binding(String direction)
|
||||
void HTMLTextAreaElement::set_selection_direction_binding(String const& direction)
|
||||
{
|
||||
set_selection_direction(direction);
|
||||
// NOTE: The selectionDirection setter never returns an error for textarea elements.
|
||||
MUST(static_cast<FormAssociatedTextControlElement&>(*this).set_selection_direction_binding(direction));
|
||||
}
|
||||
|
||||
void HTMLTextAreaElement::create_shadow_tree_if_needed()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue