1.4.9.5: SelectNodes causes NullReferenceException

This simple little code causes NullReferenceException: HtmlDocument doc = new HtmlDocument(); doc.LoadHtml("<a>Hello World!</a>"); foreach(HtmlNode link in doc.DocumentNode.SelectNodes("//img")) { ...

Id #43496 | Release: None | Updated: Sep 22 at 10:56 AM by galmok | Created: Sep 22 at 9:04 AM by galmok

Unicode Load vs LoadHTML

I have a file with the string "I’m still" (note "right single quote"). If i read the file using Load it is turned to a string of bytes (UTF-7). If I simple use File.ReadAllText without specifying t...

Id #43491 | Release: None | Updated: Sep 12 at 8:02 PM by BobFrankston | Created: Sep 12 at 8:02 PM by BobFrankston

-

-

Id #43488 | Release: None | Updated: Sep 6 at 10:43 AM by higosmaduros | Created: Sep 6 at 9:54 AM by higosmaduros

Slash not properly parsed in attribute names

When parsing the following string: <img\onerror="alert()" src="ok"> HAP understands: <img nerror="alert()" src="ok"> while broser do undersantd <img onerror="alert()" src="ok"> Is it possible to ...

Id #43483 | Release: None | Updated: Fri at 8:10 AM by OlexiyB | Created: Aug 26 at 1:21 PM by ThomasPP

Wrong XPATH for <form><ul>

While trying to work with this HTML <div class="liste clearfix"> <form name="compare_products" id="compare_products" method="post" action="/compare_products"> <ul> ...

Id #43474 | Release: None | Updated: Aug 17 at 9:14 AM by Daoose | Created: Aug 17 at 9:14 AM by Daoose

HtmlNode.SelectNodes behaves strangely with "//..." selector

I'd expect node.SelectNodes("//div") to return all divs that are descendents of node. Instead, it returns all divs in the document. It is behaving as if node == document.DocumentNode. v...

Id #43472 | Release: None | Updated: Sep 1 at 7:53 AM by GreatBasil | Created: Aug 13 at 2:15 PM by c0da

Trouble parsing html

I'm trying to parse the html page "http://projectfreetv.us/internet/big-brother-canada/season-1.html" with the CssSelect of ".episode a" It only gives me the episode classes in the first table. We...

Id #43463 | Release: None | Updated: Jul 30 at 10:22 PM by actsof3000 | Created: Jul 30 at 10:22 PM by actsof3000

Suport for .NET Core / .NET Standard

Hi there, is there any support in the works for building against the .NET Standard framework (as opposed to the .NET 4.6.X ? There was a fork someone did that ran on the old DNX runtime... but now...

Id #43455 | Release: None | Updated: Aug 9 at 8:32 AM by runtothehills | Created: Jul 21 at 8:17 PM by Marchy

*high* Can not pass "Windows App Certification Kit"

Currently project with referencing HtmlAgilityPack.v1.4.9.4 can not pass "Windows App Certification Kit" with error message Debug configuration test FAILED Debug configuration •Error Found: The d...

Id #43450 | Release: None | Updated: Jul 15 at 7:05 AM by kostix | Created: Jul 12 at 11:19 AM by kostix

HTML Agility Pack

I used HTML Agility pack to screen scrap a site with the login credentials but after the logging all I get is a message "You have to login to access this page". Is this a security issue? or any ot...

Id #43433 | Release: None | Updated: Jun 10 at 7:46 PM by rajis | Created: Jun 7 at 8:08 PM by rajis