summaryrefslogtreecommitdiffstats
path: root/dom/html/HTMLOptionElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'dom/html/HTMLOptionElement.h')
-rw-r--r--dom/html/HTMLOptionElement.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/dom/html/HTMLOptionElement.h b/dom/html/HTMLOptionElement.h
index 4b5e192ff..e220b84df 100644
--- a/dom/html/HTMLOptionElement.h
+++ b/dom/html/HTMLOptionElement.h
@@ -67,6 +67,10 @@ public:
nsresult CopyInnerTo(mozilla::dom::Element* aDest);
+ virtual bool IsDisabled() const override {
+ return HasAttr(kNameSpaceID_None, nsGkAtoms::disabled);
+ }
+
bool Disabled() const
{
return GetBoolAttr(nsGkAtoms::disabled);