Skip to main content

Bug Tracker

Side navigation

#12465 closed bug (invalid)

Opened September 05, 2012 08:58AM UTC

Closed September 05, 2012 02:30PM UTC

bug: Error IE in selector

Reported by: lucichkevin@libero.it Owned by:
Priority: low Milestone: None
Component: selector Version: 1.8.1
Keywords: Cc:
Blocked by: Blocking:
Description

I found a mistake in the use of selectors in IE, using this selector:

$ ("# form input: not ([type = button]), # form select")

it returns me this error "Object does not support this property or method".

I thought it was not to be accepted two parameters, so I tried removing "# form select" and it worked, out of curiosity I removed the filter maintaining the second switch and it worked.

In summary:

ERROR => $ ("# form input: not ([type = button]), # form select")

NO ERROR => $ ("# form input: not ([type = button])")

NO ERROR => $ ("# form input, # form select")

Doing something wrong or is it a bug?

thanks

ps. jQuery forever!

Attachments (0)
Change History (2)

Changed September 05, 2012 09:02AM UTC by anonymous comment:1

ERROR => $ ("# form input: not ([type = button]), # form select")

NO ERROR => $ ("# form input: not ([type = button])")

NO ERROR => $ ("# form input, # form select")

Changed September 05, 2012 02:30PM UTC by timmywil comment:2

component: unfiledselector
priority: undecidedlow
resolution: → invalid
status: newclosed

jQuery 1.8+ now has a bit stricter syntax conforming to the w3c specificiation. Spaces are meant to delimit a descendent combinator and should not be placed in the middle of selector parts.

Removing the spaces will make the selector valid. http://jsbin.com/unaxec/2/