18
top 4 comments
sorted by: hot top controversial new old
[-] brenstar@programming.dev 1 points 3 days ago* (last edited 3 days ago)

I read this as "Command and Conquer in HTML" as I was scrolling past and got super curious before rereading and getting disappointed

[-] Kissaki@programming.dev 11 points 1 week ago

MDN (linked at the end of the article) is so much more concise. I didn't find the broad overview in this linked article. From MDN:

A common pattern on the web is to have <button> elements control various aspects of the page, such as opening and closing popovers or <dialog> elements, formatting text, and more.

Historically creating these kinds of controls has required JavaScript event listeners added to the button which can then call the APIs on the element they control. The commandForElement and command properties provide a way to do this declaratively for a limited set of actions. This can be advantageous for built-in commands as the user does not have to wait for JavaScript to download and execute to make these buttons interactive.

So built in button action commands, replacing the need for custom JavaScript for standard actions.

The list of commands defined right now: toggle-popover, show-popover, hide-popover, close, show-modal

[-] bitfucker@programming.dev 5 points 6 days ago

...we are getting closer to turing complete HTML aren't we?

[-] Kissaki@programming.dev 3 points 6 days ago

The T in HTML stands for turing-complete, right?

this post was submitted on 08 Mar 2025
18 points (100.0% liked)

Web Development

3430 readers
2 users here now

Welcome to the web development community! This is a place to post, discuss, get help about, etc. anything related to web development

What is web development?

Web development is the process of creating websites or web applications

Rules/Guidelines

Related Communities

Wormhole

Some webdev blogsNot sure what to post in here? Want some web development related things to read?

Heres a couple blogs that have web development related content

CreditsIcon base by Delapouite under CC BY 3.0 with modifications to add a gradient

founded 2 years ago
MODERATORS