aboutsummaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'index.js')
-rw-r--r--index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.js b/index.js
index dac4412..e49768c 100644
--- a/index.js
+++ b/index.js
@@ -151,6 +151,7 @@ function filterAttributes(prop, config, type) {
}
break;
case 'extended':
+ default:
inScope = p => extendTag && type in extendTag && extendTag[type].indexOf(p) >= 0;
inScope = orFunc(inScope, p => '*' in extendTag && extendTag['*'].indexOf(p) >= 0);
// Or if it in the specific scope, fallthrough
@@ -158,7 +159,6 @@ function filterAttributes(prop, config, type) {
inScope = orFunc(inScope, isSpecific);
// Or if it in the global scope fallthrough
case 'global':
- default:
inScope = orFunc(inScope, isGlobal);
if (allowDangerousDOMEventHandlers) { // If allowed add dangerous attributes to global scope
inScope = orFunc(inScope, isDangerous);