Comment by dfabulich
4 days ago
One couldn't, because you'd need to standardize a JS-less DOM, which requires one to persuade Apple, Google, Microsoft, and Mozilla to agree on a new standard for a JS-less DOM API.
The DOM API is currently defined as a JS API, including JS strings, JS objects + properties, JS Exceptions, JS Promises, JS garbage collection, and on and on and on.
The effort to get all the browsers to agree to standardize a new JS-less DOM API would take years; none of the browser vendors even want to begin that conversation today.
They're doing it already:
https://hacks.mozilla.org/2026/02/making-webassembly-a-first...
Web API is described in WebIDL, and javascript has its own approach to consume these interfaces.