You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
User Reported:
The page documents:
jQuery( elementArray )
elementArray -- An array containing a set of DOM elements to wrap in a jQuery object.
However, as far as I can see, elementArray may also contain jQuery objects. This is a nice feature. It would be nice if it was documented!
Dev Summit Notes:
Dave: incorrect assumption, however, it should be documented that passing jquery objects in the element array will cause them to be double-wrapped. Such a child node would be singularly unloved - it would be an orphan forever, never to be adopted - it would live a life of dickensian tragedy. Add docs saying NEVER PASS ANYTHING BUT DOM ELEMENTS via elementArray
The text was updated successfully, but these errors were encountered:
pobocks
added a commit
to pobocks/api.jquery.com
that referenced
this issue
Oct 16, 2012
Pertains to: http://api.jquery.com/jQuery/
User Reported:
The page documents:
jQuery( elementArray )
elementArray -- An array containing a set of DOM elements to wrap in a jQuery object.
However, as far as I can see, elementArray may also contain jQuery objects. This is a nice feature. It would be nice if it was documented!
Dev Summit Notes:
Dave: incorrect assumption, however, it should be documented that passing jquery objects in the element array will cause them to be double-wrapped. Such a child node would be singularly unloved - it would be an orphan forever, never to be adopted - it would live a life of dickensian tragedy. Add docs saying NEVER PASS ANYTHING BUT DOM ELEMENTS via elementArray
The text was updated successfully, but these errors were encountered: