Lurker News

Comments (242) 68 threads

Earlier comments
andrewmcwatters1 reply#
Except using a URL fragment refers to a “resource that is subordinate to another, primary resource” not a destination. They point out the URL abuse, so why do it?

Slot is also a part of the custom elements standard, but they say no custom elements.
Why use only web standards and then use them incorrectly?

chuckadams#
> Why use only web standards and then use them incorrectly?

Because it's a clever hack, not a standards proposal. Lighten up, Francis.

franky47#
If anyone is wondering, `htmy` is available on NPM, and `htmx` there is not what you think.
atum471 reply#
I'll take a deeper look in the code later, but it seems useful.

If been using the window location hash to do some simple navigation on my SPA, but i use JS. (Just hide all sections and shows the one that matches the hash i.e.: #main

Kalabasa1 reply#
> hide all sections and shows the one that matches the hash

Oh there is a good hack you can do here! I've been meaning to write a blog post about this exact thing!
See CSS `:target` selector

  section {
    display: none;
  }
  section:target {
    display: block;
  }
tambourine_man#
You’re full of great hacks. That one I may actually use. Looking forward to that article.

Load more comments