14 ms·
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 w
by simplify 3y ago
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.
- yawaramin 3y agoBut 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.
- sam2426679 3y agoOP addresses this at “We can do a hack that enables you to write the target ID selector in the target attribute itself!”
- mirekrusin 3y agoJust use target, if it starts with #, it's replacement, otherwise behaves as is.