What's an interactive element?

Two years ago, I wrote an article about the dialog element . I tested where focus goes when you open a modal dialog via the showModal() method. I tried different combinations of elements and attributes to see what happens because back in 2023, the behaviour was very inconsistent. In one of my tests, I put the tabindex attribute on the dialog element. That s why Joy contacted me earlier this week,…