Closed AurelioDeRosa closed 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).
getMain()
null
main
role="main"
The
getMain()
function should returnnull
if more than onemain
element is found. However, if multiplemain
elements or elements having the attributerole="main"
are found, the function returns the first one (based on the order in the DOM).