protected function handleTag(array $token)
{
if (!$this->current) {
$this->current = $this->createElement();
}
if ($this->current->type !== 'element') {
$this->throwException("Tags can only be used on elements, not on {$this->current->type}", $token);
}
if ($this->current->tag) {
$this->throwException('This element already has a tag name, you can\'t pass a second one', $token);
}
$this->current->tag = $token['name'];
}