I have a console application which I use to download HTML from a website and compare this HTML
to another that I have in a blob
. For this, I'm using the WebBrowser
component from Windows Forms
. Everything works fine when I'm running the application on my machine, but when I migrate the console application to run on other machine, the HTML
downloaded in the run time is different in some aspects. For example:
In the base HTML
that I have on the blob
, the element
is like this:
<FORM><INPUT id=ni value=Test type=hidden name=ni>
If I run on my machine, the HTML
element is equivalent in the downloaded document by the browser, but in the other machine the element comes like this:
<FORM><INPUT id=ni type=hidden value=Test name=ni>
As you can see the order of the attributes is different. This is not a relevant change to me, but I'm wondering why this is happening if it's the same program running on both machines?
The code:
private void OnDocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
var html = _browser.Document.Body.InnerHtml;
//This is getting different.
}