WP_HTML_Processor::get_namespace(): string

In this article

Indicates the namespace of the current token, or “html” if there is none.

Return

string One of "html", "math", or "svg".

Source

public function get_namespace(): string {
	if ( ! isset( $this->current_element ) ) {
		return parent::get_namespace();
	}

	return $this->current_element->token->namespace;
}

User Contributed Notes

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