summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorathenian200 <athenian200@outlook.com>2020-01-16 14:15:23 -0600
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-04-14 12:16:48 +0200
commit8ae2267eacb0527e80aadde4e64418f7901ef210 (patch)
tree8a1d3bb4e15fa5ba12ab0caad5970360dac8ae65
parent563dc95cdbdd94496360f14fc277c4b8fc79bbab (diff)
downloadUXP-8ae2267eacb0527e80aadde4e64418f7901ef210.tar
UXP-8ae2267eacb0527e80aadde4e64418f7901ef210.tar.gz
UXP-8ae2267eacb0527e80aadde4e64418f7901ef210.tar.lz
UXP-8ae2267eacb0527e80aadde4e64418f7901ef210.tar.xz
UXP-8ae2267eacb0527e80aadde4e64418f7901ef210.zip
Issue #1356 - Restore older syntax.
Some newer Firefox syntax snuck into my last bug. Just to be on the safe side I'm restoring the older syntax here.
-rw-r--r--dom/html/nsGenericHTMLElement.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/dom/html/nsGenericHTMLElement.h b/dom/html/nsGenericHTMLElement.h
index 940404f93..acbebe087 100644
--- a/dom/html/nsGenericHTMLElement.h
+++ b/dom/html/nsGenericHTMLElement.h
@@ -818,7 +818,7 @@ public:
* Returns the current disabled state of the element.
*/
bool IsDisabled() const {
- return State().HasState(NS_EVENT_STATE_DISABLED);
+ return HasAttr(kNameSpaceID_None, nsGkAtoms::disabled);
}
bool IsHidden() const