WP_HTML_Open_Elements::clear_to_table_row_context
Clear the stack back to a table row context.
When the steps above require the UA to clear the stack back to a table row context, it > means that the UA must, while the current node is not a tr, template, or html element, pop > elements from the stack of open elements.
Метод класса: WP_HTML_Open_Elements{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WP_HTML_Open_Elements = new WP_HTML_Open_Elements(); $WP_HTML_Open_Elements->clear_to_table_row_context(): void;
Заметки
| Смотрите: https://html.spec.whatwg.org/multipage/parsing.html#clear-the-stack-back-to-a-table-row-context |
Список изменений
| С версии 6.7.0 | Введена. |
Код WP_HTML_Open_Elements::clear_to_table_row_context() WP HTML Open Elements::clear to table row context WP 7.1.3
public function clear_to_table_row_context(): void {
foreach ( $this->walk_up() as $item ) {
if (
'TR' === $item->node_name ||
'TEMPLATE' === $item->node_name ||
'HTML' === $item->node_name
) {
break;
}
$this->pop();
}
}