Skip to content

Commit

Permalink
adjusted another Mojo::DOM example for Pod::Simple::XHTML
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 14, 2014
1 parent b8f5e98 commit bc7ff7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojo/DOM.pm
Expand Up @@ -430,7 +430,7 @@ Mojo::DOM - Minimalistic HTML/XML DOM parser with CSS selectors
}
# Modify
$dom->div->p->last->append('<p id="c">C</p>');
$dom->div->p->last->append('<p id="c">456</p>');
$dom->find(':not(p)')->strip;
# Render
Expand Down Expand Up @@ -868,7 +868,7 @@ C<selected> attribute and extract their values.
$dom->parse('<input name="a" value="b">')->at('input')->val;
# "c"
$dom->parse('<option value="c">C</option>')->at('option')->val;
$dom->parse('<option value="c">Test</option>')->at('option')->val;
# "d"
$dom->parse('<option>d</option>')->at('option')->val;
Expand Down

0 comments on commit bc7ff7a

Please sign in to comment.