After installing packet it doesn't work

It seems like it works after installation but I cannot really do anything with it.. I also tried the regular agility pack with same results. using HtmlAgilityPack; HtmlDocument dokki = new HtmlDoc...

Id #35128 | Release: None | Updated: Sun at 9:43 PM by tonis | Created: Sun at 9:43 PM by tonis

Problem with encoding

Can you please make the support for iso-8859-2 encoding? This is essential for my projects where I use HAP.

Id #35087 | Release: None | Updated: Mar 30 at 11:27 PM by TonchiVZ | Created: Mar 30 at 11:27 PM by TonchiVZ

Recursive algorithms can result in stack overflows

I've rewritten .InnerText, .WriteTo() and .CloseNode() to use iterative rather than recursive algorithms to improve the stability of HAP when parsing untrusted code. I've attached the patch we're u...

Id #35060 | Release: None | Updated: Mar 20 at 11:28 PM by GarethHayter | Created: Mar 20 at 1:56 PM by Aaron_Maenpaa

Incorrect xpath parse

Hi, First, I would like to say that the tool is great! However, there is a webpage that HtmlAgilityPack is not finding the correct element when I give the xpath nor it is generating the correct xp...

Id #34973 | Release: None | Updated: Feb 11 at 8:49 PM by gustavoas | Created: Feb 11 at 8:49 PM by gustavoas

HtmlAgilityPack.HtmlDocument is not working some times.

HtmlAgilityPack.HtmlDocument is not working some times.

Id #34922 | Release: None | Updated: Jan 23 at 5:11 AM by rameshk14 | Created: Jan 23 at 5:11 AM by rameshk14

DocumentNode.OuterHtml and Comment nodes

I manually append a comment node (var comment = hdoc.CreateComment, hdoc - an instance of HtmlDocument class, aNode.AppendChild(comment)). Then I call hdoc.DocumentNode.OuterHtml to see the whole ...

Id #34908 | Release: None | Updated: Jan 17 at 8:57 AM by PrComm | Created: Jan 17 at 8:45 AM by PrComm

HtmlDocument output cannot be parsed as XML because of " -- " in a comment

Hi, I found an issue where I'm trying to parse an HTML document and load it to XElement. This specific HTML had a comment at the header that was going like this: <!-- Comment comment comment -- --...

Id #34841 | Release: None | Updated: Jan 4 at 9:48 PM by LidanHackmon | Created: Jan 4 at 9:44 PM by LidanHackmon

body node not parsed when head not closed

I have run across some situations when the head tag was not closed. In this case the parser does not detect the body, so it's missing from the HtmlDocument tree. Example <html> <head> <title>th...

Id #34711 | Release: None | Updated: Dec 9, 2013 at 5:23 PM by mohanbabu400 | Created: Dec 2, 2013 at 10:11 AM by MariusBancila

Incorrect Parsing of Malformed Html

The following Html causes it not to parse the body. Input Html: <html> <head><script type="text/javascript" src="xss.js" /></head><body><script>alert('XSS')</script></body></html> DocumentNode.De...

Id #34669 | Release: None | Updated: Dec 9, 2013 at 5:23 PM by mohanbabu400 | Created: Nov 21, 2013 at 9:31 AM by Mriswith

Detection encoding before loading of HTML

HtmlWeb class throws an exception when it can not detect the document encoding. After some investigation I decided not to use this class at all and wrote my own charset detector based on Mozilla ch...

Id #34628 | Release: None | Updated: Nov 8, 2013 at 1:17 PM by PrComm | Created: Nov 6, 2013 at 5:17 PM by PrComm