diff -rup HTML-DOM-orig/lib/HTML/DOM/_TreeBuilder.pm HTML-DOM/lib/HTML/DOM/_TreeBuilder.pm --- HTML-DOM-orig/lib/HTML/DOM/_TreeBuilder.pm 2012-03-24 23:51:05.000000000 -0700 +++ HTML-DOM/lib/HTML/DOM/_TreeBuilder.pm 2012-03-25 22:59:35.000000000 -0700 @@ -709,7 +709,7 @@ sub warning { $body->attr( $_, $attr->{$_} ); } $self->{'_pos'} = $body unless $pos->is_inside('body'); - return $self->{'_pos'}; # bypass tweaking. + return $body; # bypass tweaking. #---------------------------------------------------------------------- }