OutOfMemoryException when Parsing malformed HTML

If you have a malformed HTML document where a starting tag doesn't match the ending tag, iterating through the html tree via SelectNodes cause an endless loop and terminate with an OutOfMemoryExcep...

Id #43229 | Release: None | Updated: Wed at 5:49 PM by lutz_rosema | Created: Tue at 1:46 PM by lutz_rosema

VS 2015 Unable to find package 'HtmlAgilityPack'

PM> Install-Package HtmlAgilityPack Install-Package : Unable to find package 'HtmlAgilityPack' At line:1 char:16 + Install-Package <<<< HtmlAgilityPack + CategoryInfo : NotSpecified: ...

Id #43218 | Release: None | Updated: Aug 18 at 7:17 PM by SanterR | Created: Aug 18 at 6:58 PM by SanterR

slash from end-of-tag is misparsed

For the following test code: <test> <ref attname=abc/> </test> If I examine attributes of ref tag, its attribute name is "attname" and value is "abc/". That slash should not get added to the val...

Id #43202 | Release: None | Updated: Aug 5 at 8:53 PM by onty | Created: Aug 5 at 8:51 PM by onty

GetAttributeValue returns "Login"

Hi, I am using HtmlAgilityPack for web scraping. But when i am trying to read the tag attribute values through nodes, it returns the value "Login" instead of actual value. (Even InnerHTML also retu...

Id #43184 | Release: None | Updated: Jul 20 at 6:26 AM by nivassv | Created: Jul 20 at 6:24 AM by nivassv

Incorrect processing <p> node

The HTMLAgilityPack incorrect processing following <p> node in the attached HTML document (please find html file attached to this report). The closing tag gets removed from the document after proce...

Id #43167 | Release: None | Updated: Jul 3 at 5:33 PM by MikeKS | Created: Jul 3 at 5:31 PM by MikeKS

NuGet package corrupted

HtmlAgilityPack.1.4.9 NuGet package has a bad file inside it: lib\sl3-wp_._ The file has 0 size and a suspicious name . Opening HtmlAgilityPack.1.4.9 package with NuGet Package Explorer produces an...

Id #43161 | Release: None | Updated: Jun 29 at 2:14 PM by dzhigo | Created: Jun 29 at 2:14 PM by dzhigo

Not compiling with .NET 2.0

Hi, I've added the .NET 2.0 DLL in my test project with .NET 4.5.2. It works. using HtmlAgilityPack; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespac...

Id #43155 | Release: None | Updated: Jun 18 at 3:12 PM by nolme | Created: Jun 18 at 3:12 PM by nolme

SetID does not update attribue set

When assigning a value to node.Id the property calls SetId which correctly creates an Id attribute and adds it to the document NodesId dictionary via SetIdForNode, however it is never added to the ...

Id #43111 | Release: None | Updated: May 10 at 8:01 PM by Eleihun | Created: May 10 at 8:01 PM by Eleihun

ASP.Net 5

Hi It seems there is some issues with asp.net 5. I install the htmlagility pack from the nugget source. Some of methods has error so I can not build my project but it works when I try the view in b...

Id #35929 | Release: None | Updated: Apr 12 at 4:33 AM by mirshahreza | Created: Apr 12 at 4:33 AM by mirshahreza

Differing results returned using name and local-name()

I am experiencing differing results using Html Agility Pack when trying to match an attribute starting with a given value. Using the sample HTML below: <!DOCTYPE html> <html> <head> <title>Title</t...

Id #35920 | Release: None | Updated: Apr 2 at 9:03 AM by rrrr | Created: Apr 2 at 9:03 AM by rrrr