When I execute on the li node I only get 7 nodes, stopping with the element. I've tried descendants, but none of them return the div following the text. Is there a way to do this? Here is the structure of the html. Is there some other method I can use? I used vertical bars instead of angle brackets so I could get this posted.
|li|
|div display="flex" class="css-wjome"|
|span|
|svg|
|use||/use|
|/svg|
|/span|
|div|
|span|stuff|/span|
|/div|
|/div|
|div|
|span|
|div|
|blockquote|stuff|/blockquote|
|/div|
|/span|
|/div|
|/li|
Unfortunately, HAP closes the “span” as soon as a “div” is found.
So your current HTML is read similar to this one:
You can easily see this behavior by using
OutputHtmlas show in this Fiddle: https://dotnetfiddle.net/189Ea1So that explain why you don't get the
stufftext as you probably think it's inside the span tag which is not for HAP.