I'm finding little documentation on XPathResult on the mozilla developper site. All functions listed redirect to the main page, so they're probably not documented yet.
var myFind;
myFind = document.evaluate(
'/html/body/table[1]',
document,
null,
XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
null);
I'm looking for a way to alert the HTML tree that is under the path given.
Using alert(myFind);
doesn't work, it just gives "XPathResult".
There's just a tbody and a bunch of tr elements beneath it, and I'd like to see them all in an alert as 1 string.
What function can myFind use to do this?