Accessibility · Senior · Question 7 of 75
Why does role="presentation" on a <ul> also change its <li> children?
- 1Any role on a parent is copied to all elements inside of it
- 2
presentationremoves every child from the DOM tree at runtime - 3Required owned elements lose their role along with the parent
Show the answer
Correct answer: Required owned elements lose their role along with the parent
Explanation
List items have no meaning without the list, so they become plain too. Links inside them remain links.