Episode 12 game · Vishwa · Earth
Vishwa’s Dialog Gate
Kai’s “Leave the dojo?” box is a div with a huge z-index. It looks like a gate, but Tab walks straight through it and Escape does nothing. Feel the Hollow Wall leak, build a real <dialog> opened with showModal(), then prove focus goes in, Escape closes it and focus comes home.
Built with <div class="modal">
🔊 —
1 · Walk up to the painted door
Open Kai’s modal, then use the keyboard keys below. Watch where focus goes, and whether Escape closes the box.
2 · Build a real gate
Pick the right material for each part. Wrong picks explain why they leak.
3 · The gate test
Your gate and Kai’s face the same walk: open, Tab six times, choose Leave, then open again and press Escape.
New seal earned
The Hollow Wall crumbled
Acharya’s Rule #12A modal is a <dialog> opened with showModal(), never a div in disguise.
No role, no focus move, no Escape: Tab walks out to the page behind it.
Top layer, inert page, focus moves in, Esc closes, and it is announced as a modal dialog.
A method="dialog" form closes it and sets returnValue. Focus returns to the opener.