Skip to content

Commit

Permalink
mention that Mojo::DOM parses fragments
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 18, 2013
1 parent 3804022 commit 5fdd258
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/Mojo/DOM.pm
Expand Up @@ -448,7 +448,7 @@ L<Mojo::DOM> implements the following methods.
my $dom = Mojo::DOM->new;
my $dom = Mojo::DOM->new('<foo bar="baz">test</foo>');
Construct a new array-based L<Mojo::DOM> object and C<parse> HTML/XML document
Construct a new array-based L<Mojo::DOM> object and C<parse> HTML/XML fragment
if necessary.
=head2 all_text
Expand Down Expand Up @@ -595,7 +595,7 @@ has no parent.
$dom = $dom->parse('<foo bar="baz">test</foo>');
Parse HTML/XML document with L<Mojo::DOM::HTML>.
Parse HTML/XML fragment with L<Mojo::DOM::HTML>.
# Parse XML
my $dom = Mojo::DOM->new->xml(1)->parse($xml);
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/DOM/HTML.pm
Expand Up @@ -361,7 +361,7 @@ following new ones.
$html = $html->parse('<foo bar="baz">test</foo>');
Parse HTML/XML document.
Parse HTML/XML fragment.
=head2 render
Expand Down

0 comments on commit 5fdd258

Please sign in to comment.