Skip to content

Commit

Permalink
small optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 16, 2013
1 parent 5578336 commit f5bd2ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojo/DOM/HTML.pm
Expand Up @@ -271,7 +271,7 @@ sub _start {

# Autoclose optional HTML elements
if (!$self->xml && $$current->[0] ne 'root') {
if ($END{$start}) { $self->_end($_, $current) for @{$END{$start}} }
if (my $end = $END{$start}) { $self->_end($_, $current) for @$end }

# "li"
elsif ($start eq 'li') { $self->_close($current, {li => 1}, 'ul') }
Expand Down

0 comments on commit f5bd2ac

Please sign in to comment.