Skip to content

Commit

Permalink
update list of elements that break paragraphs
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Dec 27, 2017
1 parent c39011c commit 49913fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Changes
@@ -1,7 +1,8 @@

7.60 2017-12-22
7.60 2017-12-27
- Improved number detection in Mojo::JSON with a workaround for an upcoming
breaking change in Perl 5.28. (haarg)
- Improved HTML Living Standard compliance of Mojo::DOM::HTML.
- Fixed a bug in Mojo::Base that prevented composition of multiple roles.
(aferreira, batman)
- Fixed a bug in Mojolicious::Static where text files from DATA sections would
Expand Down
5 changes: 3 additions & 2 deletions lib/Mojo/DOM/HTML.pm
Expand Up @@ -51,8 +51,9 @@ my %END = (body => 'head', optgroup => 'optgroup', option => 'option');

# HTML elements that break paragraphs
map { $END{$_} = 'p' } (
qw(address article aside blockquote dir div dl fieldset footer form h1 h2),
qw(h3 h4 h5 h6 header hr main menu nav ol p pre section table ul)
qw(address article aside blockquote details div dl fieldset figcaption),
qw(figure footer form h1 h2 h3 h4 h5 h6 header hgroup hr main menu nav ol p),
qw(pre section table ul)
);

# HTML table elements with optional end tags
Expand Down

0 comments on commit 49913fe

Please sign in to comment.