Bug Tracker

Opened 11 years ago

Closed 11 years ago

#3780 closed bug (invalid)

contents returns incorrect result

Reported by: culyun Owned by:
Priority: minor Milestone: 1.3
Component: core Version: 1.2.6
Keywords: contents, children, selector, ":first-child", first-child, firstchild Cc:
Blocked by: Blocking:

Description

The "contents" method does not appear to operate correctly with the ":first-child" selector.

Attachments (1)

jQuery_1_2_6_contents_returns_incorrect_result.js (865 bytes) - added by culyun 11 years ago.
Sample demonstrates incorrect return value when using "first-child" selector with "contents" method

Download all attachments as: .zip

Change History (2)

Changed 11 years ago by culyun

Sample demonstrates incorrect return value when using "first-child" selector with "contents" method

comment:1 Changed 11 years ago by john

Component: unfilledcore
Resolution: invalid
Status: newclosed

:first-child only matches elements, in accordance with the CSS Selector specification.

Note: See TracTickets for help on using tickets.