title: Best Way to View Generated Source of Webpage?
body: <p>I'm looking for a tool that will give me the proper generated source including DOM changes made by AJAX requests for input into W3's validator. I've tried the following methods:</p>
  
  <ol>
  <li><a href="https://addons.mozilla.org/en-US/firefox/addon/60" rel="noreferrer" title="Web Developer Toolbar">Web Developer Toolbar</a> - Generates invalid source according to the doc-type (e.g. it removes the self closing portion of tags). Loses the doctype portion of the page.</li>
  <li><a href="https://addons.mozilla.org/en-US/firefox/addon/1843" rel="noreferrer">Firebug</a> - Fixes potential flaws in the source (e.g. unclosed tags). Also loses doctype portion of tags and injects the console which itself is invalid HTML.</li>
  <li>IE Developer Toolbar - Generates invalid source according to the doc-type (e.g. it makes all tags uppercase, against XHTML spec).</li>
  <li>Highlight + View Selection Source - Frequently difficult to get the entire page, also excludes doc-type.</li>
  </ol>
  
  <p>Is there any program or add-on out there that will give me the exact current version of the source, without fixing or changing it in some way? So far, Firebug seems the best, but I worry it may fix some of my mistakes.</p>
  
  <p><strong>Solution</strong></p>
  
  <p>It turns out there is no exact solution to what I wanted as Justin explained. The best solution seems to be to validate the source inside of Firebug's console, even though it will contain some errors caused by Firebug. I'd also like to thank Forgotten Semicolon for explaining why "View Generated Source" doesn't match the actual source. If I could mark 2 best answers, I would.</p>