Opened 14 years ago
Closed 12 years ago
#4863 closed bug (worksforme)
: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)')
Change History (2)
comment:1 Changed 14 years ago by
comment:2 Changed 12 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
I can't confirm this in any browser: http://jsbin.com/atenu