protected function getTagCloser() { if ($this->isSelfClosing && static::$config['doctype'] == 'xhtml') { return ' />'; } return '>'; }