jquery/jquery — pull request #1062 by dmethvin (2012-12-08 20:00:20+00:00)
Title: Fix #13019. Disconnected nodes with .replaceWith are a noop.

We should just do nothing with disconnected elements here, as we do with `.before()` and `.after()`. It's actually more compatible with older versions I think, although some of that may be due to bugs in those versions. In any case it's -19 gzip so there's that. :smiley_cat:

Compare this (1.8.3) to current -git:

http://jsfiddle.net/dmethvin/raR93/