This project has moved and is read-only. For the latest updates, please go here.
1
Vote

Elements are not checked if they are complete

description

string actual = @"<p>Test</p"; //missing ">"
string expected = string.Empty;

HtmlAgilityPack.HtmlDocument hd = new HtmlAgilityPack.HtmlDocument();

hd.LoadHtml(actual);
hd.ParseErrors.Count(); // Should be 1 but is 0
I saw in the Sourcecode that it is only checked if the ElementName is identical. But it should be checked also if the Elements are correctly closed.

I appreciate any workaround or fix.

comments