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

Stupid question, why have innerHTML as the default for HTMX but outerHTML for the spec merge?


innerHTML was the default of htmx for historical reasons, Alex pointed out that anything that can be achieved with innerHTML (or the other swap styles) can also be achieved with outerHTML (albeit with more violence to the DOM) so we felt that was the simplest option for a more general proposal.




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

Search: