This cropped up in the existing "[replaceWith on XML document](https://github.com/gibson042/jquery/blob/db309e74e8eb7b269665794146101f7add0b4a68/test/unit/manipulation.js#L595)" test, which (now that you mention it) I should probably expand to cover all DOM manipulations.