From 56efd60755ba27529efc79debdb0b4dbe69815eb Mon Sep 17 00:00:00 2001 From: Srikavin Ramkumar Date: Thu, 22 Dec 2022 20:01:19 -0500 Subject: [PATCH] LibWeb: Add stub reset algorithm for HTMLOutputElement --- Userland/Libraries/LibWeb/HTML/HTMLOutputElement.cpp | 8 ++++++++ Userland/Libraries/LibWeb/HTML/HTMLOutputElement.h | 2 ++ 2 files changed, 10 insertions(+) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLOutputElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLOutputElement.cpp index 44bdf96131..a50ac4232b 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLOutputElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLOutputElement.cpp @@ -17,4 +17,12 @@ HTMLOutputElement::HTMLOutputElement(DOM::Document& document, DOM::QualifiedName HTMLOutputElement::~HTMLOutputElement() = default; +// https://html.spec.whatwg.org/multipage/form-elements.html#the-output-element:concept-form-reset-control +void HTMLOutputElement::reset_algorithm() +{ + // 1. FIXME: String replace all with this element's default value within this element. + + // 2. FIXME: Set this element's default value override to null. +} + } diff --git a/Userland/Libraries/LibWeb/HTML/HTMLOutputElement.h b/Userland/Libraries/LibWeb/HTML/HTMLOutputElement.h index a9d8981bd7..70c075a06f 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLOutputElement.h +++ b/Userland/Libraries/LibWeb/HTML/HTMLOutputElement.h @@ -41,6 +41,8 @@ public: // https://html.spec.whatwg.org/multipage/forms.html#category-label virtual bool is_labelable() const override { return true; } + virtual void reset_algorithm() override; + private: HTMLOutputElement(DOM::Document&, DOM::QualifiedName); };