simonkimi / xpath_selector

An XPath selector for locating Html and Xml elements
BSD 3-Clause "New" or "Revised" License
20 stars 4 forks source link

Parsing text node #10

Open Z6P0 opened 2 years ago

Z6P0 commented 2 years ago

This code should return the text "B":

var result = HtmlXPath.html('<div>A</div>B').query("//div/following-sibling::text()");

But it returns an empty result.