Bug Tracker

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#4058 closed bug (fixed)

Simple selector not working in 1.3.1 with webkit browsers

Reported by: ecentinela Owned by: john
Priority: critical Milestone: 1.3.2
Component: selector Version: 1.3.1
Keywords: chrome find selector Cc:
Blocked by: Blocking:

Description

Refer to this group thread.

Attachments (2)

index.html (1.5 KB) - added by ecentinela 9 years ago.
chrome find selector
find-testcase.htm (717 bytes) - added by ricardobeat 9 years ago.
Short test-case

Download all attachments as: .zip

Change History (7)

Changed 9 years ago by ecentinela

Attachment: index.html added

chrome find selector

Changed 9 years ago by ricardobeat

Attachment: find-testcase.htm added

Short test-case

comment:2 Changed 9 years ago by ricardobeat

I reduced the test case.

The problem is the call to find() before adding the class. It's like the find() return is cached in some way. I happens only for class selectors, only with find() (children/filter work alright), and happens either using the cached container object or a new one.

Sizzle should be handling the query to querySelectorAll, but container[0].querySelectorAll('.selected') returns the expected results.

Hope that helps,

comment:3 Changed 9 years ago by ricardobeat

Forgot to add that this bug only happens if the target element already has a class defined, otherwise everything works fine.

comment:4 Changed 9 years ago by john

Resolution: fixed
Status: newclosed

Fixed in SVN rev [6178].

comment:5 Changed 9 years ago by john

Priority: blockercritical
Note: See TracTickets for help on using tickets.