3 ms·
Stupid question, why have innerHTML as the default for HTMX but outerHTML for the spec merge?
by scuff3d 1y ago
Stupid question, why have innerHTML as the default for HTMX but outerHTML for the spec merge?
- recursivedoubts 1y agoinnerHTML 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.