HTML: Partially implement HTMLInputElement's selection{Start,End}

Now that the implementation is in FormAssociatedElement, the
implementation in HTMLInputElement is effectively just a passthrough,
with some minor differences to handle small behavioural quirks between
the two (such as the difference in nullability of types).

(cherry picked from commit 9f24176cac862c42c9cf4d3ac0e757397a5f6ae1)
This commit is contained in:
Shannon Booth
2024-07-28 16:41:45 +12:00
committed by Nico Weber
parent 744b0e2d02
commit b37d0b4bbb
7 changed files with 114 additions and 11 deletions

View File

@@ -196,6 +196,13 @@ public:
bool value_as_number_applies() const;
bool step_applies() const;
bool step_up_or_down_applies() const;
bool selection_or_range_applies() const;
WebIDL::ExceptionOr<void> set_selection_start_for_bindings(Optional<WebIDL::UnsignedLong> const&);
Optional<WebIDL::UnsignedLong> selection_start_for_bindings() const;
WebIDL::ExceptionOr<void> set_selection_end_for_bindings(Optional<WebIDL::UnsignedLong> const&);
Optional<WebIDL::UnsignedLong> selection_end_for_bindings() const;
private:
HTMLInputElement(DOM::Document&, DOM::QualifiedName);