The HTML dialog element does not need your focus trap
I tabbed out of a showModal() dialog into the address bar and assumed it was a bug. It is not. Why the W3C APA group dropped the strict focus trap, what showModal() handles for you, and the two mistakes that make focus leak.