https://htmx.org/ needs a doctype 😬
10 replies
-
@andy is this art? it feels like art
@pepelsbey I spy a DSL! I still think it should have a doctype 😅
@zachleat @pepelsbey that’s right — it’s hyperscript [0] from the same folks as HTMX
@luciano @pepelsbey well wait that web site has a doctype
@zachleat I just had to, for science, look up if you can add a doctype via js.
You can:
document.prepend(document.implementation.createDocumentType('html', '', ''))
Not sure what to do with this knowledge now.
@kizu surely that won’t swap compatMode—does it? 😅
Update: it does not!
Looks like @morganm@subdued.social showed what you’re supposed to do in this situation and filed an issue:
https://github.com/bigskysoftware/htmx/issues/2055
Thank you!
And I guess I can’t wear this shirt any more https://www.zachleat.com/twitter/1096922195044036609