| ▲ | Invoker Commands API(developer.mozilla.org) | |||||||||||||||||||||||||||||||||||||
| 59 points by maqnius 3 days ago | 12 comments | ||||||||||||||||||||||||||||||||||||||
| ▲ | OkayPhysicist 3 hours ago | parent | next [-] | |||||||||||||||||||||||||||||||||||||
This is remarkably useful. Even ignoring the built-in commands (which are handy in their own right), I find the button's action being self-described in the html ("tell this element to do this") far more pleasant to read than the normal see button -> /document.getElementById("buttonID") -> scroll back up to the html to figure out what elements are referred to in the script. | ||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||
| ▲ | maqnius 3 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||
I just noticed, that Invoker Commands are available across all major browsers. Good to see that HTML progresses to make Javascript redundant for basic UX. | ||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||
| ▲ | wild_egg 3 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||
Oh awesome. I wanted to use this last year but safari hadn't shipped support yet and I hit some problem with the polyfill. Looks like safari shipped support in December though so now I can go nuts | ||||||||||||||||||||||||||||||||||||||
| ▲ | gitowiec 2 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||
I don't get it. They say it doesn't need JavaScript. But how command is declared? And they show example rotating img with JS | ||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||
| ▲ | mifydev 3 hours ago | parent | prev [-] | |||||||||||||||||||||||||||||||||||||
nice, htmx is infiltrating into the browser standards | ||||||||||||||||||||||||||||||||||||||