Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

jQuery(selector, context) doesn't mention strings used as context parameter #295

Closed
zzzzBov opened this Issue · 1 comment

2 participants

@zzzzBov

the documentation for jQuery(selector, context) says:

context
Type: Element or jQuery
A DOM Element, Document, or jQuery to use as context

However if a string is used (e.x. $('#foo', '#bar')), jQuery still performs $('#bar').find('#foo') successfully.

The documentation should be updated to reflect this behavior, along the lines of:

context
Type: selector, Element, or jQuery
A string containing a selector expression, DOM Element, or jQuery to use as a context

@dmethvin
Owner

Just because it works doesn't mean it's supported. It's intentionally not there.

@dmethvin dmethvin closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.