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

zzzzBov opened this Issue May 7, 2013 · 1 comment


None yet
2 participants

zzzzBov commented May 7, 2013

the documentation for jQuery(selector, context) says:

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:

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


dmethvin commented May 16, 2013

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

dmethvin closed this May 16, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment