Bug Tracker

Ticket #2683 (new bug)

Opened 8 months ago

Last modified 8 months ago

:has and :not pseudo-selectors don't play well together

Reported by: nkallen Assigned to: anonymous
Type: bug Priority: major
Milestone: 1.2.4 Component: core
Version: 1.2.3 Keywords:
Cc: Needs: Review

Description

$('tr:has(td.name:contains(bob))') // this works

$('tr:has(td.name:not(:contains(bob)))') // this doesn't

$('td.name:not(:contains(bob))') // this does

See http://pastie.caboo.se/177061 for full details

Attachments

Change History

Changed 8 months ago by upandhigh

as I know atm jQuery supports only one level nesting. so it's because your second variant doesn't work.

tr:has(td.name:not(someval)) - it's one level nesting and this one is OK tr:has(td.name:not(:contains(someval))) - this one is second level nesting and atm jQuery doesn't support it.

Note: See TracTickets for help on using tickets.