Bug Tracker

Opened 11 years ago

Closed 11 years ago

#12465 closed bug (invalid)

bug: Error IE in selector

Reported by: lucichkevin@… 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!

Change History (2)

comment:1 in reply to:  description Changed 11 years ago by anonymous

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

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

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

comment:2 Changed 11 years ago by Timmy Willison

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/

Note: See TracTickets for help on using tickets.