Bug Tracker

Opened 10 years ago

Closed 9 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 10 years ago by jerone

I can't confirm this in any browser: http://jsbin.com/atenu

comment:2 Changed 9 years ago by dmethvin

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.