aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormrmr19932014-12-17 11:08:07 +0000
committermrmr19932014-12-17 11:08:07 +0000
commit8c8ec835d673f0ec1cce242cf26cca077c845064 (patch)
tree77d34cd8266ea36edcaa27355dba1511c03070ee /lib
parentc80ad2c367f873f2b2547b60cebe49715a85ffe4 (diff)
downloadvimium-8c8ec835d673f0ec1cce242cf26cca077c845064.tar.bz2
Use element.readOnly instead of getAttribute "readonly"
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