summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb
diff options
context:
space:
mode:
authorSrikavin Ramkumar <srikavinramkumar@gmail.com>2022-12-22 19:58:21 -0500
committerAndreas Kling <kling@serenityos.org>2023-01-03 18:09:40 +0100
commit119e58a8c1c22cf190b5046631604bd63f95b981 (patch)
tree48de7bf14750bdf6ceb2c817847340c1bf4a9ad4 /Userland/Libraries/LibWeb
parentb55c9f36dc6fbe8c9d1dd486397d555877461b7c (diff)
downloadserenity-119e58a8c1c22cf190b5046631604bd63f95b981.zip
LibWeb: Add stub reset algorithm for HTMLTextAreaElement
Diffstat (limited to 'Userland/Libraries/LibWeb')
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLTextAreaElement.cpp6
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLTextAreaElement.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLTextAreaElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLTextAreaElement.cpp
index fb31efe7b1..c2347f66c4 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLTextAreaElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLTextAreaElement.cpp
@@ -24,4 +24,10 @@ i32 HTMLTextAreaElement::default_tab_index_value() const
return 0;
}
+// https://html.spec.whatwg.org/multipage/form-elements.html#the-textarea-element:concept-form-reset-control
+void HTMLTextAreaElement::reset_algorithm()
+{
+ // FIXME: The reset algorithm for textarea elements is to set the dirty value flag back to false, and set the raw value of element to its child text content.
+}
+
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLTextAreaElement.h b/Userland/Libraries/LibWeb/HTML/HTMLTextAreaElement.h
index 77aa1fdde5..5d29fcd8fc 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLTextAreaElement.h
+++ b/Userland/Libraries/LibWeb/HTML/HTMLTextAreaElement.h
@@ -48,6 +48,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:
HTMLTextAreaElement(DOM::Document&, DOM::QualifiedName);