AurelioDeRosa / web-reader

A screen reader for everyone, everywhere
Other
30 stars 2 forks source link

getMain() return the first main element if multiples are find #32

Closed AurelioDeRosa closed 8 years ago

AurelioDeRosa commented 8 years ago

The getMain() function should return null if more than one main element is found. However, if multiple main elements or elements having the attribute role="main" are found, the function returns the first one (based on the order in the DOM).