This may be a poorly titled question, because I'm not sure the correct terminology to use.
When I am on a webpage that is using a front-end framework or various web components, I want to be able to get the current, rendered html via javascript in the browser console - the same html I see when I look at the Elements
tab in the console.
On a standard site, I can use document.documentElement.innerHtml
or go look at the source in the browser. Obviously this doesn't work on sites using new technologies.
Basically, my hope is to use raw javascript to get the current, rendered (virtual?) DOM that I see on the page - exactly what I see in the Elements
tab on the dev tools. Is this possible? Are there certain keywords I should be using to search how to do it that I'm missing?