Skip to main content

Bug Tracker

Side navigation

#11966 closed bug (fixed)

Opened June 24, 2012 06:33PM UTC

Closed June 25, 2012 04:46PM UTC

descendant selector

Reported by: sfornengo@gmail.com Owned by: timmywil
Priority: low Milestone: 1.8
Component: selector Version: 1.8b1
Keywords: Cc:
Blocked by: Blocking:
Description

see http://jsfiddle.net/dK8mz/

on jquery 1.7.2 return only one result, as expected.

on jquery 1.8b1 return 2 results so it seems the ancestor descendant selector $(ancestor descendant) acts as a multiple selector...

Attachments (0)
Change History (4)

Changed June 25, 2012 11:56AM UTC by addyosmani comment:1

component: unfiledselector
priority: undecidedlow

I'm wondering if this is the correct behavior.

It's of course confirmed with 1.8b: http://jsfiddle.net/rG2xq/.

Behaves like http://jsfiddle.net/FhhyF/ rather than taking into account that we're specifying the name. In case you're stuck, this does however return the result you expect http://jsfiddle.net/emAmx/

Changed June 25, 2012 12:23PM UTC by dmethvin comment:2

milestone: None1.8
status: newopen

Changed June 25, 2012 02:26PM UTC by timmywil comment:3

owner: → timmywil
status: openassigned

Changed June 25, 2012 04:46PM UTC by timmywil comment:4

resolution: → fixed
status: assignedclosed

Update Sizzle: Removes directory caching in dirCheck. Fixes #11966.

Changeset: 375c44d9c715051940a1b9fa5fbafb5c021b6a96