r/programming • • Mar 09 '25

Introducing command And commandfor In HTML

https://developer.chrome.com/blog/command-and-commandfor
92 Upvotes

33 comments sorted by

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.

3

u/e111077 Mar 09 '25

I mean godspeed on getting that through