News for hackers. Stuff that matters.
Re:Show HN: Turn Markdown into React/Svelte/Vue UI at runtim... by yaoke259 on Tuesday August 26, 2025 @08:04AM (#45025380)
html does not allow for event handling, this allows for secure listening of the events at runtime, which afaik is not possible with html
Re:Show HN: Turn Markdown into React/Svelte/Vue UI at runtim... by mpalmer on Tuesday August 26, 2025 @08:08AM (#45025425)
Modern frontend frameworks wouldn't exist without JS events, not the other way around. You can absolutely do this with vanilla HTML+JS.

https://developer.mozilla.org/en-US/docs/Web/API/Event

Re:Show HN: Turn Markdown into React/Svelte/Vue UI at runtim... by yaoke259 on Tuesday August 26, 2025 @08:12AM (#45025463)
I suppose a vanilla js version is possible? I'll need to look into this
Re:Show HN: Turn Markdown into React/Svelte/Vue UI at runtim... by paceaux on Tuesday August 26, 2025 @11:08AM (#45027658)
You really might want to look into what the DOM is and how it works.

When HTML reaches the browser, all the markup is parsed, and the browser creates a Document Object Model (https://developer.mozilla.org/en-US/docs/Web/API/Document_Ob...). That object model is an extremely robust API that's loaded with tons of functionality, not the least of which is working with events (https://developer.mozilla.org/en-US/docs/Web/API/Document_Ob...).

The browser itself brings so much functionality that you can do stuff like check the status of the battery; create, save, and access files; get someone's precise lattitude and longitude; and _create and subscribe to streams_.

I'm not sure what you mean by, "html does not allow for event handling," ... but if HTML exists in a browser at all, there's plenty of event handling to go around.