Fix #13810: .replaceWith(nextSibling)