aboutsummaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorache <ache@ache.one>2018-05-27 11:07:07 +0200
committerache <ache@ache.one>2018-05-27 11:07:07 +0200
commit767f2cb208c2f37376db08cd554456de186a4440 (patch)
tree23cbab3d293dbadda85c548b51d9e09fe37f691a /index.js
parentTest revision with parse5 (diff)
Add more tests again
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);