Skip to content

Commit

Permalink
made Mojo::DOM::HTML a tiny bit faster
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 5, 2014
1 parent 62de666 commit 47a747c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojo/DOM/HTML.pm
Expand Up @@ -273,7 +273,7 @@ sub _start {
elsif ($start eq 'li') { _close(0, $current, {li => 1}, 'ul') }

# "colgroup", "thead", "tbody" and "tfoot"
elsif (grep { $_ eq $start } qw(colgroup thead tbody tfoot)) {
elsif ($start eq 'colgroup' || $start =~ /^t(?:head|body|foot)$/) {
_close(0, $current, \%TABLE, 'table');
}

Expand Down

0 comments on commit 47a747c

Please sign in to comment.