Skip to content

Commit

Permalink
make selectors in examples more obvious
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 3, 2014
1 parent c6f1a27 commit b3268d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Mojo/DOM.pm
Expand Up @@ -477,7 +477,7 @@ enabled by default.
=head2 ancestors
my $collection = $dom->ancestors;
my $collection = $dom->ancestors('div');
my $collection = $dom->ancestors('div > p');
Find all ancestors of this element matching the CSS selector and return a
L<Mojo::Collection> object containing these elements as L<Mojo::DOM> objects.
Expand Down Expand Up @@ -530,7 +530,7 @@ Element attributes.
=head2 children
my $collection = $dom->children;
my $collection = $dom->children('div');
my $collection = $dom->children('div > p');
Find all children of this element matching the CSS selector and return a
L<Mojo::Collection> object containing these elements as L<Mojo::DOM> objects.
Expand Down Expand Up @@ -704,7 +704,7 @@ Return L<Mojo::DOM> object for root node.
=head2 siblings
my $collection = $dom->siblings;
my $collection = $dom->siblings('div');
my $collection = $dom->siblings('div > p');
Find all siblings of this element matching the CSS selector and return a
L<Mojo::Collection> object containing these elements as L<Mojo::DOM> objects.
Expand Down

0 comments on commit b3268d6

Please sign in to comment.