Skip to main content

Bug Tracker

Side navigation

#8475 closed bug (invalid)

Opened March 08, 2011 07:39PM UTC

Closed March 25, 2011 07:45AM UTC

Last modified March 25, 2011 12:50PM UTC

this :not() selector doesn't seem to work for me

Reported by: daniel.mendelsohn@gmail.com Owned by: daniel.mendelsohn@gmail.com
Priority: low Milestone: 1.next
Component: selector Version: 1.5.1
Keywords: Cc:
Blocked by: Blocking:
Description

$( "#iw-claim-form input[ type='text' ]:not( [ disabled='disabled' ] )" ).each();

in IE 8 this still iterates over the disabled inputs

works fine in FF 3.6 and chrome 9

thanks

markup is as follows

<div id="iw-claim-form">

<div id="error-list">

Fix your error stupid!

</div>

<form id="claim-form" action="" method="">

<div class="side-group top-group clearfix">

<div class="side-by-side">

<label for="claim-code">Claim Code:</label>

<input type="text" name="claim-code" id="claim-code" value="some code junk" disabled="disabled" />

</div>

<div class="side-by-side">

<label for="email">Email:</label>

<input type="text" name="email" id="email" value="some code junk" disabled="disabled" />

</div>

</div>

<label for="title" >Title:</label>

<select name="title" id="title" tabindex="1">

<option>Title</option>

<option>Mr.</option>

<option>Mrs.</option>

<option>Ms.</option>

</select>

<div class="side-group clearfix">

<div class="side-by-side">

<label for="first-name">First Name:</label>

<input type="text" name="first-name" id="first-name" maxlength="50" size="35" value="First Name" tabindex="2" />

</div>

<div class="side-by-side">

<label for="last-name">Last Name:</label>

<input type="text" name="last-name" id="last-name" maxlength="50" size="35" value="Last Name" tabindex="3" />

</div>

</div>

Attachments (0)
Change History (8)

Changed March 08, 2011 07:43PM UTC by anonymous comment:1

here is the example in jsFiddle

http://jsfiddle.net/NjpzW/

Changed March 08, 2011 08:04PM UTC by rwaldron comment:2

owner: → daniel.mendelsohn@gmail.com
status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a REDUCED jsFiddle test case to help us assess your ticket!

Additionally, test against the jQuery 0 GIT version to ensure the issue still exists.

Changed March 08, 2011 08:05PM UTC by rwaldron comment:3

component: unfiledselector

Changed March 08, 2011 11:46PM UTC by daniel.mendelsohn@gmail.com comment:4

status: pendingnew

here is the reduced jsFiddle version

http://jsfiddle.net/f6aaU/

not quite sure how to test again 0 GIT

anyway, multiple different outcomes for this in IE8 and IE 7

Changed March 09, 2011 01:54AM UTC by dmethvin comment:5

I believe there's an open ticket for this already that I can't find, Sizzle is looking at the property rather than the attribute. As a workaround try this selector:

"#foo input[type='text']:not( :disabled ), #foo select"

Changed March 10, 2011 06:19PM UTC by rwaldron comment:6

priority: undecidedlow
status: newpending

Changed March 25, 2011 07:45AM UTC by trac-o-bot comment:7

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Changed March 25, 2011 12:50PM UTC by daniel.mendelsohn@gmail.com comment:8

Yes this still does not work and i believe it would be cool if you guys would fix it since you say you are CSS3 selectors compliant but in this instant

your not 100% compliant in IE

not being a jerk, i love jQuery and want to help it be even more awesome and perfect

should this be posted to a sizzle bug?

basically :not used in this example is not working in IE8 and lower

http://jsfiddle.net/f6aaU/