Skip to content

Commit

Permalink
Update DOM.pod
Browse files Browse the repository at this point in the history
  • Loading branch information
Azq2 authored Apr 25, 2024
1 parent cb252ab commit 6282870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/HTML5/DOM.pod
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ L<HTML5::DOM::CSS::Selector|/HTML5::DOM::CSS::Selector::Entry>.
=back

my $tree = HTML5::DOM->new->parse('<div class="red">red</div><div class="blue">blue</div>')
my $collection = $tree->at('body > div.red, body > div.blue');
my $collection = $tree->find('body > div.red, body > div.blue');
print $collection->[0]->html; # <div class="red">red</div>
print $collection->[1]->html; # <div class="red">blue</div>

Expand Down

0 comments on commit 6282870

Please sign in to comment.