WP_HTML_Unsupported_Exception::__construct( string $message, string $token_name, int $token_at, string $token, string[] $stack_of_open_elements, string[] $active_formatting_elements )

In this article

Constructor function.

Parameters

$messagestringrequired
Brief message explaining what is unsupported, the reason this exception was raised.
$token_namestringrequired
Normalized name of matched token when this exception was raised.
$token_atintrequired
Number of bytes into source HTML document where matched token starts.
$tokenstringrequired
Full raw text of matched token when this exception was raised.
$stack_of_open_elementsstring[]required
Stack of open elements when this exception was raised.
$active_formatting_elementsstring[]required
List of active formatting elements when this exception was raised.

Source

public function __construct( string $message, string $token_name, int $token_at, string $token, array $stack_of_open_elements, array $active_formatting_elements ) {
	parent::__construct( $message );

	$this->token_name = $token_name;
	$this->token_at   = $token_at;
	$this->token      = $token;

	$this->stack_of_open_elements     = $stack_of_open_elements;
	$this->active_formatting_elements = $active_formatting_elements;
}

Changelog

VersionDescription
6.7.0Introduced.

User Contributed Notes

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