Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
it is a little more expensive to stringify
  • Loading branch information
kraih committed Feb 9, 2016
1 parent cb226a2 commit 5465580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojo/DOM.pm
Expand Up @@ -230,7 +230,7 @@ sub _content {
my $tree = $self->tree;
unless ($tree->[0] eq 'root' || $tree->[0] eq 'tag') {
my $old = $self->content;
return $self->content($start ? "$old$new" : "$new$old");
return $self->content($start ? $old . $new : $new . $old);
}

$start = $start ? ($#$tree + 1) : _start($tree);
Expand Down

0 comments on commit 5465580

Please sign in to comment.