I want to validate generated html using w3c validation service.
I will need rendered source code as a string, in memory.
innerHTML - rendered tag soup (e.g. for text/html, "<br>" when source code is "<br/>").
view-source: + document.location - original (no generated HTML) source code
How to get rendered source code as a string, in memory?