Indicates the namespace of the current token, or “html” if there is none.
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.