summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/HTMLElement.h
diff options
context:
space:
mode:
authorLuke Wilde <lukew@serenityos.org>2022-03-01 21:03:30 +0000
committerAndreas Kling <kling@serenityos.org>2022-03-01 23:19:41 +0100
commit432d496ed6dbb44b3915c76b59e88f4257b4a510 (patch)
tree6e67ebe4489dc10b871cb8c7dec0dd3fb4f3aa66 /Userland/Libraries/LibWeb/HTML/HTMLElement.h
parentd2e18175eff3dea89375e9ce12998c5e820213a5 (diff)
downloadserenity-432d496ed6dbb44b3915c76b59e88f4257b4a510.zip
LibWeb: Add form associated element categories
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLElement.h')
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLElement.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLElement.h b/Userland/Libraries/LibWeb/HTML/HTMLElement.h
index 9e925b2b59..1674a906c0 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLElement.h
+++ b/Userland/Libraries/LibWeb/HTML/HTMLElement.h
@@ -46,6 +46,9 @@ public:
bool fire_a_synthetic_pointer_event(FlyString const& type, DOM::Element& target, bool not_trusted);
+ // https://html.spec.whatwg.org/multipage/forms.html#category-label
+ virtual bool is_labelable() const { return false; }
+
protected:
virtual void parse_attribute(const FlyString& name, const String& value) override;