ltoussaint / fizzler

Automatically exported from code.google.com/p/fizzler
GNU General Public License v3.0
0 stars 0 forks source link

Inner HTML empty? #47

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi I have this simple initialization code,

   HtmlDocument html = new HtmlDocument();
            html.LoadHtml(new WebClient().DownloadString(_url));

            var document = html.DocumentNode;

then I do this

     List<HtmlNode> nodes = document.QuerySelectorAll("select[name=chapter]").ToList<HtmlNode>();
            List<HtmlNode> chapterList = nodes[0].QuerySelectorAll("option").ToList<HtmlNode>();

it returns the nodes just fine correct length and all but, One problem is when 
I do

chapterList[0].innerHTML

this is empty, when its really not? 

Any one can fix this ? Or any can provide any work around,

Original issue reported on code.google.com by rawri.cl...@gmail.com on 15 Aug 2011 at 1:54