jamietre / CsQuery

CsQuery is a complete CSS selector engine, HTML parser, and jQuery port for C# and .NET 4.
Other
1.16k stars 250 forks source link

IDomContainer.Depth hangs #133

Closed cyril265 closed 2 years ago

cyril265 commented 11 years ago

I am using CsQuery 1.3.5-beta5. Tryed it with different HTML document but the result is the same. Code:

var doc = CQ.Create(TEST_HTML);
var el = doc.Find("div > div > div").FirstElement();
Console.WriteLine(el.Depth);

 private const String TEST_HTML = 
            @"<html>
            <body>
                <div>
                    <div id=""b"">
                        <div>
                            Field 1
                        </div>
                    </div>
                </div>
            </body>
            </html>";
jamietre commented 11 years ago

I'm just back from vacation - thanks for the contributions & bug reports - will look over this and get everything up to date asap.