Safari issue with location.hash
greystate opened this issue · comments
In Safari (v6.0.5 OS X), the links to the various sizes doesn't change the inputs - the hashChange event fires, but the hash value doesn't match the Regex.
It looks like the hash comes back URL-encoded:
location.hash // => #2880%C3%971800@15.4%E2%80%B3
Whereas running decodeURIComponent()
seems to do the right thing:
decodeURIComponent(location.hash) // => #2880×1800@15.4″