Skip to content

Commit

Permalink
mention undef for select with multiple attribute too
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 22, 2015
1 parent b40b945 commit 5b34e33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Mojo/DOM.pm
Expand Up @@ -948,7 +948,8 @@ C<root>, C<tag> or C<text>.
Extract value from C<button>, C<input>, C<option>, C<select> and C<textarea>
element or return C<undef> if this element has no value. In the case of
C<select> with C<multiple> attribute, find C<option> elements with C<selected>
attribute and return an array reference with all values.
attribute and return an array reference with all values or C<undef> if none
could be found.
# "a"
$dom->parse('<input name="test" value="a">')->at('input')->val;
Expand Down

0 comments on commit 5b34e33

Please sign in to comment.