skipto-landmarks-headings / browser-extension

SkipTo Landmarks & Headings browser extension
Mozilla Public License 2.0
6 stars 1 forks source link

Add inert to visibility check #7

Open extra808 opened 3 weeks ago

extra808 commented 3 weeks ago

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.