as we still have to remove the body tag manually, I'd consider calling this instead of the lines above:
$this->mText = preg_replace( array( '/^\<\!DOCTYPE.*?<html><body>/si', '/<\/body><\/html>$/si'), '', $dom_document->saveHTML() );