protected function __construct($url, $status, array $headers, $body) { parent::__construct($url, $status, $headers, $body); $this->_domDocument = new DOMDocument(); $this->_domDocument->preserveWhiteSpace = true; // We have to silence this out because invalid documents // tend to throw allot of warnings @$this->_domDocument->loadHtml($body); }