Bug Tracker

Modify

Ticket #11124 (closed enhancement: invalid)

Opened 17 months ago

Last modified 12 months ago

feature request: context parameter for .is

Reported by: gibson042 Owned by:
Priority: low Milestone: None
Component: unfiled Version: 1.7.1
Keywords: Cc:
Blocking: Blocked by:

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)

Change History

comment:2 Changed 17 months ago by addyosmani

  • Priority changed from undecided to low

comment:3 Changed 17 months ago by addyosmani

  • Keywords needsreview added

comment:4 Changed 12 months ago by addyosmani

  • Keywords needsreview removed
  • Status changed from new to closed
  • Resolution set to invalid

Closing as the PR related to this was similarly closed. We decided not to go for it, but thanks for your time on it!

Last edited 12 months ago by addyosmani (previous) (diff)

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.