Skip to content

Commit

Permalink
Document the contains() XPath function.
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Dec 15, 2014
1 parent 3aaa751 commit 73d04a3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Revision history for Perl extension Test::XPath.

0.17
- Added `contains()` to the list of XPath predicates in the
documentation, since it's later used in an example. Suggested by Jim
Keenan (RT #100902).

0.16 2011-11-23T05:24:03Z
- Bumped Test::Pod requirement up to 1.41 to support L<text|scheme:...>
Expand Down
5 changes: 5 additions & 0 deletions lib/Test/XPath.pm
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,11 @@ Select all "p" nodes that have any attribute.
Select a count of all "p" nodes in the document.
=item C<contains(//title, "Welcome")>
Select true if the title node contains the string "Welcome", and false if it
does not.
=back
There are a bunch of core functions in XPath. In addition to the (C<last()>
Expand Down

0 comments on commit 73d04a3

Please sign in to comment.