diff options
author | Moonchild <moonchild@palemoon.org> | 2020-01-28 23:03:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-28 23:03:48 +0000 |
commit | ed88b99849156004c04e4a0c87ea9b2360ef19b6 (patch) | |
tree | 85910991cfd39dc19da5e6ed5526d1a6e6c5ff0a /dom/html/nsGenericHTMLElement.h | |
parent | c4b0715baaffc541670fd1158557aa7e61e521d3 (diff) | |
parent | 7a697172f36656126d6e415d91b4e260229ee37f (diff) | |
download | UXP-ed88b99849156004c04e4a0c87ea9b2360ef19b6.tar UXP-ed88b99849156004c04e4a0c87ea9b2360ef19b6.tar.gz UXP-ed88b99849156004c04e4a0c87ea9b2360ef19b6.tar.lz UXP-ed88b99849156004c04e4a0c87ea9b2360ef19b6.tar.xz UXP-ed88b99849156004c04e4a0c87ea9b2360ef19b6.zip |
Merge pull request #1357 from athenian200/form-disabled-issue
Forms: Click() isn't executing properly when elements are defined disabled
Diffstat (limited to 'dom/html/nsGenericHTMLElement.h')
-rw-r--r-- | dom/html/nsGenericHTMLElement.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/dom/html/nsGenericHTMLElement.h b/dom/html/nsGenericHTMLElement.h index edef2eeef..2b8b608b9 100644 --- a/dom/html/nsGenericHTMLElement.h +++ b/dom/html/nsGenericHTMLElement.h @@ -817,8 +817,8 @@ public: /** * Returns the current disabled state of the element. */ - virtual bool IsDisabled() const { - return false; + bool IsDisabled() const { + return HasAttr(kNameSpaceID_None, nsGkAtoms::disabled); } bool IsHidden() const @@ -1222,8 +1222,6 @@ public: virtual nsresult PreHandleEvent( mozilla::EventChainPreVisitor& aVisitor) override; - virtual bool IsDisabled() const override; - /** * This callback is called by a fieldest on all its elements whenever its * disabled attribute is changed so the element knows its disabled state |