Bug xpath() does not recognize contains()

I tried to do something like this:

Code:
string page = '<p>foo bar</p>';
for _, node in xpath(string, '//p[contains(text(),"foo")]') {
  print(node);
}

But this yields an error message: invalid xpath expression (test.ash, line 34)

Possibly related: I noticed a discussion about implementing a proper XPath support. Has this been actually implemented?
 
Top