News for hackers. Stuff that matters.
Re:Non-interactive Elements with the inert attribute by keltex on Tuesday April 26, 2022 @11:46PM (#31176076)
Re:Non-interactive Elements with the inert attribute by derefr on Wednesday April 27, 2022 @12:44AM (#31176402)
You mean, mostly hidden behind a browser config flags (rightly) defining it as still experimental. It's very new!
Re:Non-interactive Elements with the inert attribute by TAKEMYMONEY on Wednesday April 27, 2022 @06:06PM (#31186418)
A bit of pedantry: it's actually very old, as the article mentions, even being removed from the spec at one point [1] and then being added back in.

https://github.com/whatwg/html/commit/5ddfc78b1f82e86cc202d7...

Re:Non-interactive Elements with the inert attribute by rubans on Tuesday April 26, 2022 @05:47PM (#31173589)
I came across this attribute when making a model/popover widget to capture focus, which is necessary for accessibility and keyboard navigation. Works great and will be using again.
Re:Non-interactive Elements with the inert attribute by TAKEMYMONEY on Wednesday April 27, 2022 @06:08PM (#31186441)
Wouldn't something like `non-interactive` make for a better name?

"Inert" typically means things that don't move, it means things that don't react in a less-common, chemical sense. Even when used then it would be a metaphor in this context.