public function renderOpeningTag() : string
    {
        $result = '<' . $this->name;

        foreach ($this->attributes as $name => $value) {
            $result .= sprintf(' %s="%s"', $name, htmlspecialchars($value, ENT_COMPAT | ENT_HTML5));
        }

        $result .= '>';

        return $result;
    }