public function filter($node, $tagname)
    {
        $ret = array();
        while ($node = Dom::getNextSiblingElement($node)) {
            array_push($ret, $node);
        }
        return $ret;
    }