Skip to content

Commit

Permalink
no need for redundant examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 22, 2015
1 parent 1b35296 commit b40b945
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lib/Mojo/DOM.pm
Expand Up @@ -960,14 +960,11 @@ attribute and return an array reference with all values.
$dom->parse('<option value="c">Test</option>')->at('option')->val;
# "d"
$dom->parse('<option>d</option>')->at('option')->val;
# "e"
$dom->parse('<select><option selected>e</option></select>')
$dom->parse('<select><option selected>d</option></select>')
->at('select')->val;
# "f"
$dom->parse('<select multiple><option selected>f</option></select>')
# "e"
$dom->parse('<select multiple><option selected>e</option></select>')
->at('select')->val->[0];
=head2 wrap
Expand Down

0 comments on commit b40b945

Please sign in to comment.