aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/dom_utils.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dom_utils.coffee b/lib/dom_utils.coffee
index 152a378e..46bf3639 100644
--- a/lib/dom_utils.coffee
+++ b/lib/dom_utils.coffee
@@ -72,7 +72,7 @@ DomUtils =
elements.concat areas
false
else if (tagName == "input" and DomUtils.isSelectable element) or tagName == "textarea"
- not (element.disabled or element.hasAttribute "readonly")
+ not (element.disabled or element.readOnly)
else if (tagName == "input" and element.getAttribute("type")?.toLowerCase() != "hidden") or
tagName in ["button", "select"]
not element.disabled