title: How to get the <html> tag HTML with JavaScript / jQuery?
body: <p>Using <code>$('html').html()</code> I can get the HTML within the <code>&lt;html&gt;</code> tag (<code>&lt;head&gt;</code>, <code>&lt;body&gt;</code>, etc.). But how can I get the actual HTML of the <code>&lt;html&gt;</code> tag (with attributes)?</p>
  
  <p>Alternatively, is it possible to get the entire HTML of the page (including doctype, <code>&lt;html&gt;</code>, etc.) with jQuery (or plain old JavaScript)?</p>