diff options
author | ache <ache@ache.one> | 2018-10-17 16:25:19 +0200 |
---|---|---|
committer | ache <ache@ache.one> | 2018-10-17 16:25:50 +0200 |
commit | c96794e08cc7a33609e16d4155d73218f2d8fad7 (patch) | |
tree | 71e64f83ee3a6d0a688fffcdebd8ef45d9849629 /index.js | |
parent | Update deps and version (diff) |
Supports aria attributes
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -131,7 +131,7 @@ function filterAttributes(prop, config, type) { const isDangerous = p => DOMEventHandler.indexOf(p) >= 0; const isSpecific = p => type in specific && specific[type].indexOf(p) >= 0; - const isGlobal = p => htmlElemAttr['*'].indexOf(p) >= 0; + const isGlobal = p => htmlElemAttr['*'].indexOf(p) >= 0 || p.match(/^aria-[a-z]{3,24}$/); let inScope = _ => false; |