src/Element/HTML/HTMLTableElement.php
/**
     * Returns the first tfoot element child of the table element, if any; otherwise a new tfoot
     * element must be table-created and inserted at the end of the table, and then that new
     * element must be returned.
     *
     * @see https://html.spec.whatwg.org/multipage/tables.html#dom-table-createtfoot
     */
Returns the first tfoot element child of the table element, if any; otherwise a new tfoot
element must be table-created and inserted at the end of the table, and then that new
element must be returned.


Returns the first tfoot element child of the table element if any ; otherwise a new tfoot element must be table - created and inserted at the end of the table and then that new element must be returned .
public function createTFoot(): HTMLTableSectionElement
    {
        $node = $this->childNodes->first();
        while ($node) {
            if ($node instanceof HTMLTableSectionElement && $node->localName === 'tfoot') {
                return $node;
            }
            $node = $node->nextSibling;
        }
        $tfoot = ElementFactory::create($this->nodeDocument, 'tfoot', Namespaces::HTML);
        $this->insertNode($tfoot, null);
        return $tfoot;
    }
public function createTFoot ( ) : HTMLTableSectionElement { $ node = $ this -> childNodes -> first ( ) ; while ( $ node ) { if ( $ node instanceof HTMLTableSectionElement && $ node -> localName === 'tfoot' ) { return $ node ; } $ node = $ node -> nextSibling ; } $ tfoot = ElementFactory :: create ( $ this -> nodeDocument , 'tfoot' , Namespaces :: HTML ) ; $ this -> insertNode ( $ tfoot , null ) ; return $ tfoot ; }
Returns the first tfoot element child of the table element, if any; otherwise a new tfoot
 element must be table-created and inserted at the end of the table, and then that new
 element must be returned.
Returns the first tfoot element child of the table element if any ; otherwise a new tfoot element must be table - created and inserted at the end of the table and then that new element must be returned .