From 1f8d508258ac5d7d57fc4eb35cac90f28bc8ca03 Mon Sep 17 00:00:00 2001 From: athenian200 Date: Thu, 16 Jan 2020 14:15:23 -0600 Subject: 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. --- dom/html/nsGenericHTMLElement.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dom/html/nsGenericHTMLElement.h') 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 -- cgit v1.2.3