Is it possible to extract Active DOM from SWebBrowser

Hello, I am working on a web-based application, and for all rendering I have been using the SWebBrowser module. Within this module it has a getSource() function which I used only to discover it prints the static pre-rendered DOM rather than the dynamically altered DOM. I wanted to know if there is any way to get it to print what the current DOM looks like at a given point. If there is not, is there any way to get the DOM to communicate with my C++? I ask this because I noted I can execute javascript in the SWebBrowser from C++, and if I could send a message back, I could just have the javascript get the active DOM for me (With a js command like document.getElementsByTagName(‘body’)[0].innerHTML). Sorry for the long post, and thanks in advance for any help that you guys can provide!