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?
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
Comments (242) 68 threads
Earlier commentsSlot 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?
Because it's a clever hack, not a standards proposal. Lighten up, Francis.
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
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
All comments shown.
Couldn't load more comments. Check your connection and try again.