Skip to content

Commit

Permalink
documentation and test tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 5, 2012
1 parent e7b97c4 commit 6b2598b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 2 additions & 0 deletions Changes
@@ -1,6 +1,8 @@

3.45 2012-10-06
- Relaxed comment handling in Mojo::DOM::HTML a little. (jberger)
- Improved documentation.
- Improved tests.

3.44 2012-09-29
- Improved html_escape to favor lower case entities. (judofyr)
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Parameters.pm
Expand Up @@ -219,7 +219,7 @@ L<Mojo::Parameters> implements the following attributes.
my $charset = $p->charset;
$p = $p->charset('UTF-8');
Charset used for encoding or decoding parameters, defaults to C<UTF-8>.
Charset used for encoding and decoding parameters, defaults to C<UTF-8>.
=head2 C<pair_separator>
Expand Down
9 changes: 4 additions & 5 deletions t/mojo/dom.t
Expand Up @@ -2140,9 +2140,8 @@ $dom = Mojo::DOM->new(<<EOF);
<!-- HTML4 -- >
<!-- bad idea -- HTML4 -- >
EOF
my $tree = $dom->tree;
is $tree->[1][1], ' HTML5 ', 'HTML5 comment';
is $tree->[3][1], ' bad idea -- HTML5 ', 'HTML5 comment with --';
is $tree->[5][1], ' HTML4 ', 'HTML4 comment';
is $tree->[7][1], ' bad idea -- HTML4 ', 'HTML4 comment with --';
is $dom->tree->[1][1], ' HTML5 ', 'right comment';
is $dom->tree->[3][1], ' bad idea -- HTML5 ', 'right comment';
is $dom->tree->[5][1], ' HTML4 ', 'right comment';
is $dom->tree->[7][1], ' bad idea -- HTML4 ', 'right comment';

0 comments on commit 6b2598b

Please sign in to comment.