This is because axs.constants.GLOBAL_PROPERTIES is an array, but supported is assumed to be a map and the attributeName in supported check will fail.
This is easy to reproduce with an element like <input type="text"> which has no role, at least according to axs.utils.getRole with the implicit flag set to true.
Maybe axs.constants.GLOBAL_PROPERTIES should have an equivalent property map, and that should be checked instead.
This is because
axs.constants.GLOBAL_PROPERTIES
is an array, butsupported
is assumed to be a map and theattributeName in supported
check will fail.This is easy to reproduce with an element like
<input type="text">
which has no role, at least according toaxs.utils.getRole
with theimplicit
flag set totrue
.Maybe
axs.constants.GLOBAL_PROPERTIES
should have an equivalent property map, and that should be checked instead.