Side navigation
#4863 closed bug (worksforme)
Opened July 07, 2009 02:09PM UTC
Closed November 18, 2010 03:11AM UTC
:contains doesn't work with class selectors in IE
Reported by: | jakeking | Owned by: | john |
---|---|---|---|
Priority: | major | Milestone: | 1.4 |
Component: | selector | Version: | 1.3.2 |
Keywords: | contains selector internet explorer IE | Cc: | |
Blocked by: | Blocking: |
Description
Consider the following line of markup:
<a class='location' style='text-decoration:underline'>Aurora, CO</a>
I should be able to select this with a class selector like so:
$('.location:contains(Aurora)')
This works in Firefox, but in IE 7 and 8 I get the generic error: "Object doesn't support this property or method."
My current workaround is to include the tag in the selector:
$('a.location:contains(Aurora)')
I can't confirm this in any browser: http://jsbin.com/atenu