You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In addition to a query selector or HTML DOM node, the axe context argument can also include an "include/exclude" pojo. The a11yAudit helper fails to account for this argument format and assumes that the object is the options argument.
For example, the following invocation will execute on the entire document instead of the assigned scope, and will fail to apply the axe configurations set in environment.js:
The text was updated successfully, but these errors were encountered:
drewlee
changed the title
a11yAudit Fails to account for include/exclude rules config
a11yAudit fails to account for include/exclude context parameter
Apr 23, 2019
In addition to a query selector or HTML DOM node, the axe context argument can also include an "include/exclude" pojo. The a11yAudit helper fails to account for this argument format and assumes that the object is the options argument.
For example, the following invocation will execute on the entire document instead of the assigned scope, and will fail to apply the axe configurations set in environment.js:
The current workaround is to assign
null
as the second argument to bypass the internal formatting check:The text was updated successfully, but these errors were encountered: