Readit News logoReadit News
ancyrweb commented on Introducing command And commandfor In HTML   developer.chrome.com/blog... · Posted by u/Kerrick
afavour · 10 months ago
I like that but I’m not so sure.

Hyperlinks aren’t interactive. They’re bookmarks. When I click on a link have I interacted with the page? In a sense I have. But have I changed its state? No. I’ve just moved from one static place to another static place.

ancyrweb · 10 months ago
The author probably mean hypermedias. Buttons and links are just means, but no interactivity even happens without the user clicking or moving their mouse.

Now we can of course talk about client-only interactivity (as in thick clients like paint apps) but that's not the topic.

ancyrweb commented on Introducing command And commandfor In HTML   developer.chrome.com/blog... · Posted by u/Kerrick
Thorrez · 10 months ago
How are command and commandfor similar to comefrom?

They seem similar to goto to me. With goto, the trigger specifies what to do. That's what command and commandfor do.

With comefrom, what to do specifies the trigger. That seems similar to the existing document.addEventListener() in Javascript.

ancyrweb · 10 months ago
I don't see either. It's not even similar to goto. It's nothing more than method invocation, which is nothing like goto.

u/ancyrweb

KarmaCake day2March 10, 2025View Original