From c96794e08cc7a33609e16d4155d73218f2d8fad7 Mon Sep 17 00:00:00 2001 From: ache Date: Wed, 17 Oct 2018 16:25:19 +0200 Subject: Supports aria attributes --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'index.js') diff --git a/index.js b/index.js index e49768c..2bc6142 100644 --- a/index.js +++ b/index.js @@ -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; -- cgit v1.2.3-54-g00ecf