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 Sep 18, 2015
1 parent 63092b3 commit 0cd1aa3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

6.21 2015-09-17
6.21 2015-09-18

6.20 2015-09-15
- Deprecated Mojo::UserAgent::CookieJar::collecting in favor of
Expand Down
7 changes: 5 additions & 2 deletions lib/Mojo/DOM.pm
Expand Up @@ -518,8 +518,11 @@ as L<Mojo::DOM> objects.
# "<p><b>123</b></p>"
$dom->parse('<p>Test<b>123</b></p>')->at('p')->child_nodes->first->remove;
# "<!-- Test -->"
$dom->parse('<!-- Test --><b>123</b>')->child_nodes->first;
# "<!DOCTYPE html>"
$dom->parse('<!DOCTYPE html><b>123</b>')->child_nodes->first;
# " Test "
$dom->parse('<b>123</b><!-- Test -->')->child_nodes->last->content;
=head2 children
Expand Down

0 comments on commit 0cd1aa3

Please sign in to comment.