summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/HTMLOptionElement.h
diff options
context:
space:
mode:
authorLuke Wilde <lukew@serenityos.org>2022-09-30 16:21:34 +0100
committerAndreas Kling <kling@serenityos.org>2022-09-30 18:05:48 +0200
commit2133b7d58ae2b971c346d28f8c092d3d2e39ec4c (patch)
tree8873911ec9d188176e87e3f7b18f07be35f01453 /Userland/Libraries/LibWeb/HTML/HTMLOptionElement.h
parentc85fcd442f4354988ccc3354f7e88bb2d2c21fe7 (diff)
downloadserenity-2133b7d58ae2b971c346d28f8c092d3d2e39ec4c.zip
LibWeb: Implement :enabled and :disabled pseudo classes to spec
Previously we only considered an element disabled if it was an <input> element with the disabled attribute, but there's way more elements that apply with more nuanced disabled/enabled rules.
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLOptionElement.h')
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLOptionElement.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLOptionElement.h b/Userland/Libraries/LibWeb/HTML/HTMLOptionElement.h
index 836ca42190..86eab9a942 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLOptionElement.h
+++ b/Userland/Libraries/LibWeb/HTML/HTMLOptionElement.h
@@ -28,6 +28,8 @@ public:
int index() const;
+ bool disabled() const;
+
private:
friend class Bindings::OptionConstructor;
friend class HTMLSelectElement;