WP_HTML_Processor::generate_implied_end_tags_thoroughly()

In this article

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness. Use WP_HTML_Processor::generate_implied_end_tags instead.

Closes elements that have implied end tags, thoroughly.

Description

See the HTML specification for an explanation why this is different from generating end tags in the normal sense.

See also

Source

	return $this->step_in_head();

/*
 * > A start tag whose tag name is "body"
 *
 * This tag in the IN BODY insertion mode is a parse error.
 */
case '+BODY':
	if (
		1 === $this->state->stack_of_open_elements->count() ||
		'BODY' !== ( $this->state->stack_of_open_elements->at( 2 )->node_name ?? null ) ||
		$this->state->stack_of_open_elements->contains( 'TEMPLATE' )

Changelog

VersionDescription
6.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.