We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82eed21 commit 2007017Copy full SHA for 2007017
src/directives/public/bind.js
@@ -20,12 +20,11 @@ var modelProps = {
20
'false-value': '_falseValue'
21
}
22
23
-// regex to test for globally allowed attributes:
24
-// - class
25
-// - data-*
26
-// - aria-*
27
-// - role
28
-var globalAllowedAttrRE = /^class$|^role$|^data-|^aria-/
+// regex to test for globally allowed attributes.
+// we only need to include ones that:
+// - do not have a corresponding property, e.g. role, dropzone;
+// - cannot be camelized into the corresponding property, .e.g class, accesskey, contenteditable;
+var globalAllowedAttrRE = /^(class|role|accesskey|contenteditable|contextmenu|dropzone|hidden|tabindex)$|^data-|^aria-/
29
30
module.exports = {
31
0 commit comments