Skip to main content

Bug Tracker

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)')

Attachments (0)
Change History (2)

Changed July 20, 2009 09:13AM UTC by jerone comment:1

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

Changed November 18, 2010 03:11AM UTC by dmethvin comment:2

resolution: → worksforme
status: newclosed