LibWeb: Subclass FormAssociatedElement text selection methods

These are only relevant to HTMLInputElement and HTMLTextArea elements.
This commit is contained in:
Tim Ledbetter 2024-08-30 17:22:58 +01:00 committed by Andreas Kling
commit 206262cd55
Notes: github-actions[bot] 2024-08-31 09:50:53 +00:00
5 changed files with 47 additions and 47 deletions

View file

@ -49,7 +49,7 @@ namespace Web::HTML {
class HTMLInputElement final
: public HTMLElement
, public FormAssociatedElement
, public FormAssociatedTextControlElement
, public DOM::EditableTextNodeOwner
, public Layout::ImageProvider {
WEB_PLATFORM_OBJECT(HTMLInputElement, HTMLElement);
@ -77,6 +77,9 @@ public:
virtual String value() const override;
WebIDL::ExceptionOr<void> set_value(String const&);
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#concept-textarea/input-relevant-value
virtual String relevant_value() override { return value(); }
void commit_pending_changes();
String placeholder() const;