matatk / landmarks

Allows you to navigate a web page via WAI-ARIA landmarks, using the keyboard or a pop-up menu
http://matatk.agrip.org.uk/landmarks/
MIT License
125 stars 7 forks source link

feat: Guess the "main" region if none exists #430

Closed matatk closed 3 years ago

matatk commented 3 years ago

If no "main" region is found, then look for some common IDs/class names to see if we can guess it. This partly addresses #181.

This does support situations where there are other landmarks, but it assumes that the "main" region is at the top level of the tree.