Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

would it possible to have a browser ship with htmx so that it is possible to have truly "javascript optional"? (in principle this applies to any full js framework but I suppose it is natural in the htmx context)

are there any unsurmountable issues around security and the sandbox etc (not terribly familiar with browser internals)



Most of what htmx does is a direct extension of the browser's capabilities. Some issues I can think of are

- maintaining the "accessible by default" nature of HTML

- swapping. htmx takes html from the server and uses one of innerHTML, outerHTML and insertAdjacentHTML to put it into the document, but it also does a whole lot more to avoid unexpected behavior. This would all need to be specified and implemented natively


In general there are good reasons not to do that. It's much easier to ship a tiny dependency-free JS library than it is to ship a browser.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: