r/programming • u/KerrickLong • Mar 09 '25
Introducing command And commandfor In HTML
https://developer.chrome.com/blog/command-and-commandfor
92
Upvotes
r/programming • u/KerrickLong • Mar 09 '25
View all comments
Show parent comment
3
u/krileon Mar 09 '25
The selection should just follow the same practice as querySelector in JavaScript. Without that it's always going to basically be a useless addition. I haven't built a site in the past 5+ years that depends in idrefs. Everything is built with reusable components and it's an annoyance and overhead to ensure unique ids.