WP_HTML_Processor::is_mathml_integration_point(): bool

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/#mathml-text-integration-point instead.

Indicates if the current token is a MathML integration point.

Description

See also

Return

bool Whether the current token is a MathML integration point.

Source

private function is_mathml_integration_point(): bool {
	$current_token = $this->state->current_token;
	if ( ! isset( $current_token ) ) {
		return false;
	}

	if ( 'math' !== $current_token->namespace || 'M' !== $current_token->node_name[0] ) {
		return false;
	}

	$tag_name = $current_token->node_name;

	return (
		'MI' === $tag_name ||
		'MO' === $tag_name ||
		'MN' === $tag_name ||
		'MS' === $tag_name ||
		'MTEXT' === $tag_name
	);
}

Changelog

VersionDescription
6.7.0Introduced.

User Contributed Notes

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