title: VB.NET webbrowser: HTML of DocumentText is inaccurate, compared to inspecting elements in a browser
body: <p>I'm trying to read messages sent by strangers on <a href="http://www.omegle.com/" rel="nofollow noreferrer">Omegle</a>. A random "chat with strangers" website.</p>
  
  <p>I've displayed the <code>DocumentText</code> of my webbrowser (called <code>Omegle</code>) in a textbox called <code>OmegleHTML</code>:</p>
  
  <pre><code> Private Sub Omegle_DocumentCompleted(sender As Object, e As WebBrowserDocumentCompletedEventArgs) Handles Omegle.DocumentCompleted
      OmegleHTML.Text = Omegle.DocumentText
      Me.Text = Omegle.Document.Title
  End Sub
  </code></pre>
  
  <p>I've also did a bit of coloring to make things a bit clear:</p>
  
  <p><img src="https://i.stack.imgur.com/H6vKv.png" alt="OmegleHTML"></p>
  
  <p>Now using this HTML code, I've been able to do simple tasks I need such as simulating clicks. But what I'm mainly interested in like I said is <strong>extracting the string a stranger says</strong> from the HTML code, sadly I'm unable to find what I need in the HTML code I've exported to the textbox, however when I inspect the message element in Chrome:</p>
  
  <p><img src="https://i.stack.imgur.com/7Elod.png" alt="Chrome element inspecting"></p>
  
  <p>This is the exact code I need to display in my textbox in order to extract the <strong>logitem</strong> message a stranger types, now what am I doing wrong? I noticed that when I press <strong>Ctrl + U</strong> (page source) in chrome, it displays the same exact code my textbox displays, aslo missing the logitems I need, so if I'm not looking for the page source, what should I look for?</p>