htmldocument.GetElementById returns wrong node

in a page i have the following: <span name="abc"></span> . . . <div id="abc"></div> htmldocument.GetElementById("abc") is giving me the span element. How so?

Id #43594 | Release: None | Updated: Wed at 9:51 AM by mmcossu | Created: Wed at 9:51 AM by mmcossu

Security issues raised by audtor for MixedCodeDocument > StreamWriter

The code scan report said The function Save() in MixedCodeDocument.cs sometimes fails to release a system resource allocated by StreamWriter() on line 310 and line 321. I guess StreamWriter did not...

Id #43580 | Release: None | Updated: Feb 22 at 4:53 AM by onming268 | Created: Feb 22 at 4:53 AM by onming268

Question about the HtmlNodeCollection.FindFirst method

Hello, I have a question about the implementation of the FindFirst method from the HtmlNodeCollection class. Why has it been implemented with a "Contains" instead of an equality comparer? It coul...

Id #43572 | Release: None | Updated: Feb 8 at 10:42 PM by Fread | Created: Feb 8 at 10:42 PM by Fread

StackOverflowException

When trying to convert html to text where there are malformatted tags or missing close tags, Html Agility Pack fails with StackOverflowException. This occurs on "Load" method. Malformatted html can...

Id #43571 | Release: None | Updated: Feb 8 at 11:12 AM by vreis | Created: Feb 8 at 11:12 AM by vreis

Problem to read full HTML content in few URL

Hi, I have created a service to extract HTML data in C# application. It works very well but in few URL's the dynamic HTML content is not downloaded. This problem occurs on those URLs where some of ...

Id #43564 | Release: None | Updated: Jan 27 at 5:27 PM by ajaysaini07 | Created: Jan 27 at 5:27 PM by ajaysaini07

Cannot parse all li's out of list

See this SO issue: http://stackoverflow.com/questions/41689137/html-agility-pack-parsing-error# In a nutshell, only 4 results are returned for no apparent reason. I'm guessing there's some sort of...

Id #43561 | Release: None | Updated: Jan 17 at 5:28 AM by ItsAllOk | Created: Jan 17 at 3:51 AM by ItsAllOk

RemoveChild (keepGrandChildren) with em inside returns strange results

Here's a simple snippet which attempts to strip out the span element while keeping everything else: var document = new HtmlDocument(); document.LoadHtml("<div><span>a<em>b</em>c</sp...

Id #43552 | Release: None | Updated: Jan 10 at 9:23 AM by johnnyoshika | Created: Jan 6 at 1:48 PM by johnnyoshika

Don't fine SelectNodes in HTMLnode [C#]

Hello I want use HTML Agility Pack to etract direct link By a website. I try to make different tuto but SelectNodes doesn't exist in Htmlnodes it's the same thing for load. In a lot of tuto they...

Id #43534 | Release: None | Updated: Nov 24, 2016 at 11:33 AM by CoSoBo | Created: Nov 24, 2016 at 11:33 AM by CoSoBo

support.net core

The dependency HtmlAgilityPack 1.4.9.5 does not support framework .NETStandard,Version=v1.6.

Id #43530 | Release: None | Updated: Feb 21 at 12:48 AM by LHCGreg | Created: Nov 17, 2016 at 8:48 PM by spongman

LoadHtml throws StackOverflowException for HTML with big level of tag embedding

The LoadHtml() throws StackOverflowException when using an HTML with big level of embedding. With the HAP sources I can see that exception is being thrown because of recursion in HtmlNode.SetChang...

Id #43529 | Release: None | Updated: Dec 6, 2016 at 5:06 AM by karthikasok | Created: Nov 10, 2016 at 10:17 AM by ArtemSMishchenko