WP_HTML_Processor::is_mathml_integration_point(): bool

In this article

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only by core. It is listed here for completeness.

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

 * @return bool Whether the current token is a MathML integration point.
 */
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.

Sponsor
SponsoredKunjungi sekarang
Promo