jQuery Selectors Not Working in IE8

Just taken us all morning to track down a bug that only happened in IE8. Turns out that selectors on hrefs don’t work in IE8, so these don’t work:


$('a href="#anchor"]')
$('a href$="#anchor"]')

We tried the latter to get round the issue reported in this post, but no luck.

Looking to upgrade all the code to jQuery 1.7.1 this afternoon, so will let you know if this fixes it.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s