PostsBlogReposAbout
Samuel
@samuel.fm
just learned some Cursed Knowledge: HTML comment syntax is valid JavaScript iter.ca/post/js-html...
HTML comments work in JavaScript too
Some weird legacy behavior in JavaScript
iter.ca
2 1 12
6 February 2024 at 10:38 pmView on Bluesky
Samuel6 Feb 2024
<!-- don't forget, closing html tags is optional console.log("lol");
1 4
Samuel6 Feb 2024
--> and our brave boys at TC39 just made this valid in the spec too, to match browser behaviour window.location.href = "https://twitter.com/robpalmer2/status/1754982552564314351";
Tweet by @robpalmer2
twitter.com
3
Exhaustion Party7 Feb 2024
absolutely wild and very cursed. thanks for the write up!
1 1
Samuel8 Feb 2024
not my blog post but yep wild!
1