Side navigation
#11124 closed enhancement (invalid)
Opened January 02, 2012 07:01AM UTC
Closed May 29, 2012 08:38AM UTC
feature request: context parameter for .is
| Reported by: | gibson042 | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | None |
| Component: | unfiled | Version: | 1.7.1 |
| Keywords: | Cc: | ||
| Blocked by: | Blocking: |
Description
http://lists.w3.org/Archives/Public/public-webapps/2011OctDec/1454.html observes a similarity between Element.matches and jQuery.fn.is, with a gap from our method's lack of a context parameter. Adding the two-parameter signature would fill in that gap, both increasing (future) standards compatibility and fulfilling the bulk of #10868.
Usage:
jQuery(element).is("~ selector", sibling)jQuery(descendant).is("selector", ancestor)jQuery(child).is("> selector", parent)
Attachments (0)
Change History (4)
Changed January 02, 2012 07:10AM UTC by comment:1
Changed January 02, 2012 12:04PM UTC by comment:2
| priority: | undecided → low |
|---|
Posted some comments: https://github.com/jquery/jquery/pull/651
Changed January 02, 2012 12:04PM UTC by comment:3
| keywords: | → needsreview |
|---|
Changed May 29, 2012 08:38AM UTC by comment:4
| _comment0: | As the pull request related to this has been closed as wontfix, closing the ticket as well with the same resolution. → 1338280762246349 |
|---|---|
| _comment1: | Closing as the ticket related to this was similarly closed. We decided not to go for it, but thanks for your time on the PR! → 1338281511764087 |
| _comment2: | Closing as the PR related to this was similarly closed. We decided not to go for it, but thanks for your time on the PR! → 1338281524714050 |
| keywords: | needsreview |
| resolution: | → invalid |
| status: | new → closed |
Closing as the PR related to this was similarly closed. We decided not to go for it, but thanks for your time on it!
https://github.com/jquery/jquery/pull/651