Skip to content

Commit

Permalink
another contents example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 12, 2014
1 parent 8e8ffc2 commit db061d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Mojo/DOM.pm
Expand Up @@ -641,6 +641,9 @@ as L<Mojo::DOM> objects.
# "<p><b>123</b></p>"
$dom->parse('<p>test<b>123</b></p>')->at('p')->contents->first->remove;
# "<!-- test -->"
$dom->parse('<!-- test --><b>123</b>')->contents->first;
=head2 find
my $collection = $dom->find('html title');
Expand Down

0 comments on commit db061d9

Please sign in to comment.