I've got some HTML:
<html>
<head>
<title>title</title>
</head>
<body>
<p>a pargraph</p>
</body>
</html>
For which I grab the body
and p
node, and then I tried
Console.WriteLine(p.ParentNode == body);
And it's telling me False. Why is that? I need this functionality in my program...