Skip to content

Commit

Permalink
another Mojo::DOM example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 11, 2015
1 parent 1bd1ed3 commit 81e0953
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Mojo/DOM.pm
Expand Up @@ -738,6 +738,9 @@ more siblings.
Return L<Mojo::DOM> object for parent of this node or C<undef> if this node has
no parent.
# "<b><i>Test</i></b>"
$dom->parse('<p><b><i>Test</i></b></p>')->at('i')->parent;
=head2 parse
$dom = $dom->parse('<foo bar="baz">I ♥ Mojolicious!</foo>');
Expand Down

0 comments on commit 81e0953

Please sign in to comment.