Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
more generic method descriptions for Mojo::DOM
  • Loading branch information
kraih committed Feb 12, 2014
1 parent 534d463 commit 8e8ffc2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/Mojo/DOM.pm
Expand Up @@ -554,7 +554,7 @@ All selectors from L<Mojo::DOM::CSS/"SELECTORS"> are supported.
$dom = $dom->append('<p>I ♥ Mojolicious!</p>');
Append HTML/XML fragment to this node.
Append new content to this node.
# "<div><h1>A</h1><h2>B</h2></div>"
$dom->parse('<div><h1>A</h1></div>')->at('h1')->append('<h2>B</h2>')->root;
Expand All @@ -566,7 +566,7 @@ Append HTML/XML fragment to this node.
$dom = $dom->append_content('<p>I ♥ Mojolicious!</p>');
Append HTML/XML fragment to this node's content.
Append new content to this node's content.
# "<div><h1>AB</h1></div>"
$dom->parse('<div><h1>A</h1></div>')->at('h1')->append_content('B')->root;
Expand Down Expand Up @@ -614,7 +614,7 @@ All selectors from L<Mojo::DOM::CSS/"SELECTORS"> are supported.
my $str = $dom->content;
$dom = $dom->content('<p>I ♥ Mojolicious!</p>');
Render this node's content to HTML/XML or replace it with HTML/XML fragment.
Return this node's content or replace it with new content.
# "<b>test</b>"
$dom->parse('<div><b>test</b></div>')->div->content;
Expand Down Expand Up @@ -732,7 +732,7 @@ Parse HTML/XML fragment with L<Mojo::DOM::HTML>.
$dom = $dom->prepend('<p>I ♥ Mojolicious!</p>');
Prepend HTML/XML fragment to this node.
Prepend new content to this node.
# "<div><h1>A</h1><h2>B</h2></div>"
$dom->parse('<div><h2>B</h2></div>')->at('h2')->prepend('<h1>A</h1>')->root;
Expand All @@ -744,7 +744,7 @@ Prepend HTML/XML fragment to this node.
$dom = $dom->prepend_content('<p>I ♥ Mojolicious!</p>');
Prepend HTML/XML fragment to this node's content.
Prepend new content to this node's content.
# "<div><h2>AB</h2></div>"
$dom->parse('<div><h2>B</h2></div>')->at('h2')->prepend_content('A')->root;
Expand Down

0 comments on commit 8e8ffc2

Please sign in to comment.