This adds checking for the inert attribute to the isVisible() function that determines whether an element should be targeted for focus or not. It replaces the check for hidden because there's already a computed style check for display: none, checking for the hidden attribute is redundant.
This adds checking for the
inert
attribute to the isVisible() function that determines whether an element should be targeted for focus or not. It replaces the check forhidden
because there's already a computed style check fordisplay: none
, checking for thehidden
attribute is redundant.