Skip to content

Commit

Permalink
rephrase description of val method
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 22, 2015
1 parent 5b34e33 commit 5dd03aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

6.21 2015-09-22
6.21 2015-09-23
- Added val method to Mojo::DOM.

6.20 2015-09-15
Expand Down
10 changes: 5 additions & 5 deletions lib/Mojo/DOM.pm
Expand Up @@ -945,11 +945,11 @@ C<root>, C<tag> or C<text>.
my $value = $dom->val;
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 or C<undef> if none
could be found.
Extract value from form element (such as C<button>, C<input>, C<option>,
C<select> and C<textarea>) 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 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 5dd03aa

Please sign in to comment.