Opened 11 years ago
Closed 11 years ago
#12465 closed bug (invalid)
bug: Error IE in selector
Reported by: | 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 Changed 11 years ago by
comment:2 Changed 11 years ago by
Component: | unfiled → selector |
---|---|
Priority: | undecided → low |
Resolution: | → invalid |
Status: | new → closed |
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/
ERROR => $ ("# form input: not ([type = button]), # form select")
NO ERROR => $ ("# form input: not ([type = button])")
NO ERROR => $ ("# form input, # form select")