Skip to main content

Bug Tracker

Side navigation

#8720 closed bug (duplicate)

Opened March 31, 2011 03:22AM UTC

Closed July 12, 2011 04:54PM UTC

Last modified July 12, 2011 04:54PM UTC

:has fails with some combinations of other selectors

Reported by: danheberden Owned by:
Priority: low Milestone: 1.next
Component: selector Version: 1.5.1
Keywords: :has Cc:
Blocked by: Blocking:
Description

Since there were a few other tickets expressing different parts of the busted functionality, I opted to place all of them together in one bug and leave a good test case that can easily be updated to test/express further issues.

So if you are having troubles with :has in your selector, comment here and fork the test-case with new tests showing how it fails.

http://jsfiddle.net/danheberden/F7gzn/

Currently:

:has( li:eq( 2 ) )
:has( li:lt( 1 ) )
:has( li:gt( 1 ) )
:has( .test:not( .done ) ) // but :has( :not( .done ).test ) works
:has( li:not( :contains( nup ) )

Replaces:

#4322, #2683, #6723, #4773

Attachments (0)
Change History (9)

Changed March 31, 2011 03:23AM UTC by danheberden comment:1

component: unfiledselector
keywords: → :has
priority: undecidedlow
status: newopen

Changed March 31, 2011 03:23AM UTC by danheberden comment:2

#2683 is a duplicate of this ticket.

Changed March 31, 2011 03:24AM UTC by danheberden comment:3

#4322 is a duplicate of this ticket.

Changed March 31, 2011 03:24AM UTC by danheberden comment:4

#6723 is a duplicate of this ticket.

Changed March 31, 2011 03:31AM UTC by danheberden comment:5

description: Since there were a few other tickets expressing different parts of the busted functionality, I opted to place all of them together in one bug and leave a good test case that can easily be updated to test/express further issues. \ \ So if you are having troubles with :has in your selector, comment here and fork the test-case with new tests showing how it fails. \ \ http://jsfiddle.net/danheberden/F7gzn/ \ \ '''Currently''': \ :has( li:lt( 1 ) ) \ :has( li:gt( 1 ) ) \ :has( .test:not( .done ) ) // but :has( :not( .done ).test ) works \ :has( li:not( :contains( nup ) ) \ \ '''Replaces''': \ #4322, #2683, #6723 \ \ Since there were a few other tickets expressing different parts of the busted functionality, I opted to place all of them together in one bug and leave a good test case that can easily be updated to test/express further issues. \ \ So if you are having troubles with :has in your selector, comment here and fork the test-case with new tests showing how it fails. \ \ http://jsfiddle.net/danheberden/F7gzn/ \ \ '''Currently''': \ \ {{{ \ :has( li:eq( 2 ) ) \ :has( li:lt( 1 ) ) \ :has( li:gt( 1 ) ) \ :has( .test:not( .done ) ) // but :has( :not( .done ).test ) works \ :has( li:not( :contains( nup ) ) \ }}} \ \ \ '''Replaces''': \ #4322, #2683, #6723, #4773 \ \

Changed March 31, 2011 03:31AM UTC by danheberden comment:6

#4773 is a duplicate of this ticket.

Changed April 13, 2011 12:26AM UTC by AlistairB comment:7

Added ul:has(.whatever:contains(bar))

http://jsfiddle.net/AlistairB/F7gzn/5/

This bug should be at least med priority IMHO.

Changed July 12, 2011 04:54PM UTC by john comment:8

resolution: → duplicate
status: openclosed

Changed July 12, 2011 04:54PM UTC by john comment:9

Duplicate of #8132.