protected function renderAttributes()
    {
        $attributes = '';

        foreach ($this->attributes as $key => $value) {
            $attributes .= " $key" . (null !== $value ? "=\"$value\"" : '');
        }

        return $attributes;
    }