WP_HTML_Processor::generate_implied_end_tags( string|null $except_for_this_element = null )

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 https://html.spec.whatwg.org/#generate-implied-end-tags instead.

Closes elements that have implied end tags.

Description

See also

Parameters

$except_for_this_elementstring|nulloptional
Perform as if this element doesn’t exist in the stack of open elements.

Default:null

Source


/*
 * > A comment token
 */
case '#comment':
case '#funky-comment':
case '#presumptuous-tag':
	$this->insert_html_element( $this->state->current_token );
	return true;

/*
 * > A DOCTYPE token
 */
case 'html':
	// Parse error: ignore the token.
	return $this->step();

Changelog

VersionDescription
6.4.0Introduced.

User Contributed Notes

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