API Docs: Error in `after`
|Reported by:||T.J. Crowder||Owned by:|
As of jQuery 1.4, .before() and .after() will also work on disconnected DOM nodes. For example, given the following code:
The result is a jQuery set containing a div and a paragraph, in that order.
That's not correct. The jQuery set will still only contain the div; it's just that the paragraph will be added to the DOM after it (but not included in the jQuery object). Test: http://jsbin.com/onoqe4