Skip to main content

Bug Tracker

Side navigation

#3470 closed bug (invalid)

Opened October 12, 2008 11:25AM UTC

Closed October 14, 2009 01:03AM UTC

:not filters too many elements when used with '>' selector

Reported by: davcamer Owned by: flesler
Priority: major Milestone: 1.3
Component: selector Version: 1.2.6
Keywords: Cc:
Blocked by: Blocking:

$(document).ready(function () {

$('tr > th').addClass('table-heading');

$('tr:not(tr > th)').addClass('highlight');


The second selector is flawed. The :not() shouldn't filter anything. Instead, it filters everything. .highlight is not added to any elements.

Not important for this particular example, but could be related to other problems like #2683

Attachments (0)
Change History (2)

Changed October 17, 2008 01:12PM UTC by choan comment:1

If you want to apply the "highlight" class to every TR which does not contains a TH, you're using a wrong selector.

Should be:


Changed October 14, 2009 01:03AM UTC by dmethvin comment:2

component: unfilledselector
resolution: → invalid
status: newclosed

Incorrect selector usage, per choan's comment.