protected function acceptTag($tag)
    {
        if ($tag->getTagName() === 'a') {
            $this->page->addLink($tag);
        } elseif ($tag->getTagName() === 'base') {
            $this->page->setBase($tag->getAttribute('href'));
        } elseif ($tag->getTagName() === 'title') {
            $this->page->setTitle($tag);
        } elseif ($this->isFormElement($tag->getTagName())) {
            for ($i = 0; $i < count($this->open_forms); $i++) {
                $this->open_forms[$i]->addWidget($tag);
            }
            $this->last_widget = $tag;
        }
    }