Skip to main content

Bug Tracker

Side navigation

#5918 closed bug (duplicate)

Opened January 24, 2010 05:06AM UTC

Closed November 21, 2010 04:08AM UTC

Last modified November 21, 2010 04:08AM UTC

:not filter bug for input of type BUTTON on IE

Reported by: NadAf Owned by: NadAf
Priority: major Milestone: 1.4
Component: selector Version: 1.4
Keywords: Cc:
Blocked by: Blocking:


I am trying to use the following code on IE 8 for an input of type button. It seems that the :NOT filter is not working when combined with attribute.

// Match all inputs with ID=comment and not having attached attribute.

$("input#comment:not([attached])").attr("attached", true).click(function() {alert('Can you see me?')});

However, it works fine on FireFox.

Attachments (0)
Change History (5)

Changed June 14, 2010 12:33AM UTC by dmethvin comment:1

component: unfiledselector

Changed November 20, 2010 05:19PM UTC by dmethvin comment:2

owner: → NadAf
status: newpending

Please provide a test case. I have a feeling that the problem is related to [attached] and has nothing to do with button.

Changed November 21, 2010 02:29AM UTC by NadAf comment:3

status: pendingnew

Here is a test case:

You should not see the alert box. However, on IE, you see it.

Changed November 21, 2010 04:08AM UTC by snover comment:4

resolution: → duplicate
status: newclosed

Changed November 21, 2010 04:08AM UTC by snover comment:5

Duplicate of #5930.