I'm using htmlagilitypack to parse forms. i commented out the line that makes the form have no innerhtml because i use that property in my code.
ElementsFlags.Add("form", HtmlElementFlag.CanOverlap/* | HtmlElementFlag.Empty*/);
// they sometimes contain, and sometimes they don 't...
My problem is with a specific form. its not getting all the inner html. some options and inputs are missing (like it got cut off). not sure if this is an issue with the xpath by microsoft or htmlagilitypack.
the line of code is
HtmlDocument doc = new HtmlDocument();
HtmlNodeCollection coll = doc.DocumentNode.SelectNodes("//form");
//coll.InnerHtml has problems
testparseform.html is a random survey form i saved the source for, the link is: