title: Does jQuery's replaceWith() also remove event handlers?
body: <p>I've looked through the jQuery Documentation for the answer to this simple question:</p>
  
  <blockquote>
    <p>Does <code>replaceWith()</code> call <code>remove()</code> or <code>detach()</code> under the hood?</p>
  </blockquote>
  
  <p>I've had no luck with the official documentation; it is ambiguously defined as removing the node. But tests show a memory leak.</p>