title: jQuery replace matched element with another element tag
body: <p>I'm wrapping my featured images in a figure element. However, IE8 does not recognize the figure element properly and borks my image. So, I'm trying to use jQuery to detect IE8 and replace the figure element with a simple div element.</p>
  
  <p>Here's my test jQuery:</p>
  
  <pre><code>jQuery('.entry figure.figureFeatured').replaceWith(
      jQuery('&lt;div/&gt;').html(
          jQuery('.entry figure.figureFeatured').html()
          )
      );
  </code></pre>
  
  <p>It works fine except that the original figure element's attributes are no longer attached to the replaced div element (according to chrome's inspector)</p>