jQuery's replaceAll does not insert any element after the first if called on a block of HTML that contains multiple sibling elements.

This page must be reloaded between tests.