WP_HTML_Active_Formatting_Elements::insert_markerpublicWP 6.7.0

Inserts a "marker" at the end of the list of active formatting elements.

The markers are inserted when entering applet, object, marquee, > template, td, th, and caption elements, and are used to prevent > formatting from "leaking" into applet, object, marquee, template, > td, th, and caption elements.

Method of the class: WP_HTML_Active_Formatting_Elements{}

No Hooks.

Returns

null. Nothing (null).

Usage

$WP_HTML_Active_Formatting_Elements = new WP_HTML_Active_Formatting_Elements();
$WP_HTML_Active_Formatting_Elements->insert_marker(): void;

Notes

Changelog

Since 6.7.0 Introduced.

WP_HTML_Active_Formatting_Elements::insert_marker() code WP 6.9.1

public function insert_marker(): void {
	$this->push( new WP_HTML_Token( null, 'marker', false ) );
}