protected function renderList()
{
$attributes = new Attributes($this->attributes, ['class' => 'media-list']);
$this->attributes = [];
$string = "<ul {$attributes}>";
foreach ($this->contents as $item) {
$string .= $this->renderItem($item, 'li');
}
$string .= "</ul>";
return $string;
}