#html

2 posts

How to disable UI and control focus with the inert attribute

The inert attribute is a new accessibility primitive that can be used to disable off-screen or non-interactable UI elements and prevent focus from moving to them.

How to debug HTML elements that disappear from the document

There are a few ways to debug temporary HTML elements and states, but there is a simple solution involving opening the debugger with a timeout.