protected function table_row($element)
{
$row = array();
foreach ($element->childNodes as $node) {
if ($node instanceof DOMText) {
continue;
}
if ($node->tagName !== 'td' && $node->tagName !== 'th') {
continue;
}
$row[] = $this->get_text($node);
}
return $row;
}