LibWeb: Follow spec steps to set the selectionDirection attribute value

This commit is contained in:
Tim Ledbetter
2024-10-04 12:12:39 +01:00
committed by Andreas Kling
parent e0cd2edccb
commit d0b97873d4
10 changed files with 68 additions and 4 deletions

View File

@@ -149,6 +149,7 @@ public:
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-textarea/input-selectiondirection
Optional<String> selection_direction() const;
void set_selection_direction(Optional<String> direction);
WebIDL::ExceptionOr<void> set_selection_direction_binding(Optional<String> direction);
SelectionDirection selection_direction_state() const { return m_selection_direction; }
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-textarea/input-setrangetext