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:
Attachments (0)
Change History (9)
Changed March 31, 2011 03:23AM UTC by comment:1
component: | unfiled → selector |
---|---|
keywords: | → :has |
priority: | undecided → low |
status: | new → open |
Changed March 31, 2011 03:31AM UTC by 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 April 13, 2011 12:26AM UTC by 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 comment:8
resolution: | → duplicate |
---|---|
status: | open → closed |