My company was just focusing on updating all of our dialogs to ensure they were accessible. We made sure everything was keyboard tabbable to just within the dialog, focus returns to the correct element, etc. It was realized that someone could browse to a different landmark region and get out of the dialog that way. How can we avoid this?
[lozandier] Ideally the default behavior would be for the dialog to focus back to the element that opened it if applicable (even as a passed in parameter to open() & showModal(), the document body other wise.
Correct, we've made a <dialog> element that follows what a standard should be. The only way that it can be broken would be navigation in a screen reader via a role. It returns focus normally