I am trying to get the html source of a website including all the styles of the elements set by the css. So basically the rendered html of the page, such that if an element is hidden it has style = display:none
When using the functions below style attributes added by the css are not included in the string.
document.getElementsByTagName('html')[0].innerHTML;
or
inDocument.documentElement.innerHTML;
Is there a way to include the css attributes?
Thanks, James