Skip to content

Commit

Permalink
Mojo::Collection still stringifies
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 17, 2014
1 parent 51695db commit 7df037f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Mojo/DOM.pm
Expand Up @@ -868,13 +868,13 @@ the case of C<select>, find all C<option> elements it contains that have a
C<selected> attribute and extract their values.
# "b"
$dom->parse('<input name="a" value="b">')->at('input')->val->first;
$dom->parse('<input name="a" value="b">')->at('input')->val;
# "c"
$dom->parse('<option value="c">Test</option>')->at('option')->val->first;
$dom->parse('<option value="c">Test</option>')->at('option')->val;
# "d"
$dom->parse('<option>d</option>')->at('option')->val->first;
$dom->parse('<option>d</option>')->at('option')->val;
=head2 wrap
Expand Down

0 comments on commit 7df037f

Please sign in to comment.