Accessibility · Senior · Question 22 of 75

Why is inert better than a focus trap built with sentinel elements?

Show the answer

Correct answer: The background really is unreachable, including virtual cursors

Explanation

Key-based traps only catch Tab, while screen reader users can still browse behind the modal. showModal() gives you this behaviour natively.

Further reading

Problem with a question

Accessibility · Senior · question 22

Test yourself

Take the Accessibility · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz