Bug Tracker

Opened 11 years ago

Closed 11 years ago

#11124 closed enhancement (invalid)

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:


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.


  • jQuery(element).is("~ selector", sibling)
  • jQuery(descendant).is("selector", ancestor)
  • jQuery(child).is("> selector", parent)

Change History (4)

comment:2 Changed 11 years ago by addyosmani

Priority: undecidedlow

comment:3 Changed 11 years ago by addyosmani

Keywords: needsreview added

comment:4 Changed 11 years ago by addyosmani

Keywords: needsreview removed
Resolution: invalid
Status: newclosed

As the pull request related to this has been closed as wontfix, closing the ticket as well with the same resolution.

Version 0, edited 11 years ago by addyosmani (next)
Note: See TracTickets for help on using tickets.