Lurker News

Comments (242) 68 threads

Show all comments

Showing thread 5 of 68

azornathogron1 reply#
This is a glorious demonstration of someone really understanding the platform.

I don't expect I would ever use it, but I think it's excellent.

simplify3 replies#
Understanding or not, certain decisions like overriding the semantic meaning of a hash in a url doesn't seem to be working with the platform. A better version would be adding a target to a `data-` attribute.

It's a fun project overall, though.

sam24266791 reply#
OP addresses this at “We can do a hack that enables you to write the target ID selector in the target attribute itself!”
simplify1 reply#
I'm only addressing the comment on "a glorious demonstration" of understanding the platform, where hacks like this go against such a take (IMO)
neoberg#
I'd say hacking the platform in a way that's elegant like this would require a certain level of understanding of it,
mirekrusin#
Just use target, if it starts with #, it's replacement, otherwise behaves as is.
yawaramin#
But the hash doesn't have a semantic meaning when it is in an href or action attribute, because it is stripped out before the request is sent to the server. The hash only has a meaning when it's in the URL bar. That's kinda the point of this hack.