Bug Tracker

Opened 14 years ago

Closed 12 years ago

#3976 closed bug (worksforme)

:not returning different results than .not

Reported by: jdwbell Owned by: jdwbell
Priority: low Milestone:
Component: selector Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:

Description (last modified by dmethvin)

In the example given below these two return the expected elements (exclude only divs which contain other divs):



but these three do not (they seem to be excluding all divs as well as all other elements which contain divs:




Tested on Chrome, Firefox, IE6, and Safari.


      div, fieldset, p {
	border: ridge 1px silver;
	padding: 20px;
	margin: 20px;
      .wrappedElement {
	border: ridge 2px #FF0000; 

     <script type="text/javascript" src="jquery-1.3.1.js"></script>

	  <p>paragraph surrounded by three divs</p>
         div surrounded by fieldset

Change History (4)

comment:1 Changed 14 years ago by dmethvin

Owner: set to john

comment:2 Changed 13 years ago by dmethvin

Component: unfilledselector
Description: modified (diff)
Summary: :not returning different results then .not:not returning different results than .not

comment:3 Changed 12 years ago by Rick Waldron

Milestone: 1.4
Owner: changed from john to jdwbell
Priority: majorlow
Status: newpending

Please provide a reduced jsFiddle test case, thanks!

comment:4 Changed 12 years ago by jitter

Resolution: worksforme
Status: pendingclosed

test case. Can't reproduce this. All for variants yield the same correct result. If you feel this ticket was incorrectly closed, feel free to report back and reopen with a reproducible test case.

Last edited 12 years ago by jitter (previous) (diff)
Note: See TracTickets for help on using tickets.