scroll-to-css-selector
scroll-to-css-selector copied to clipboard
What does targetElement=.foo&bar match?
targetElement=.foo&bar
Does the selector parsing end at &? It feels like it should if you're going with a urlencoded style.
If I understand correctly, if one wants an ampersand selector inside targetElement, it should be URL-encoded as %26.
Otherwise, Jake’s interpretation would override the selector.
This is where the parenthetical style would really clarify things. Hard to misread this variation: #targetElement(.foo&bar). Additionally, it opens the door back up for sites to use hash fragments in a query parameter style: #targetElement(.foo&bar)&pid=5 (where pid is a site specific page id or something).