src/Element/HTML/HTMLTableElement.php
/**
     * Removes the first thead element in the table, if one exists.
     *
     * @see https://html.spec.whatwg.org/multipage/tables.html#dom-table-deletethead
     */
Removes the first thead element in the table, if one exists.
Removes the first thead element in the table if one exists .
public function deleteTHead(): void
    {
        $node = $this->childNodes->first();
        while ($node) {
            if ($node instanceof HTMLTableSectionElement && $node->localName === 'thead') {
                $node->removeNode();
                return;
            }
            $node = $node->nextSibling;
        }
    }
public function deleteTHead ( ) : void { $ node = $ this -> childNodes -> first ( ) ; while ( $ node ) { if ( $ node instanceof HTMLTableSectionElement && $ node -> localName === 'thead' ) { $ node -> removeNode ( ) ; return ; } $ node = $ node -> nextSibling ; } }
Removes the first thead element in the table, if one exists.
Removes the first thead element in the table if one exists .