diff --git a/src/wp-includes/html-api/class-wp-html-processor.php b/src/wp-includes/html-api/class-wp-html-processor.php index 168b8ace4c..d6df280f35 100644 --- a/src/wp-includes/html-api/class-wp-html-processor.php +++ b/src/wp-includes/html-api/class-wp-html-processor.php @@ -4704,7 +4704,7 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor { */ public function get_namespace(): string { if ( ! isset( $this->current_element ) ) { - return 'html'; + return parent::get_namespace(); } return $this->current_element->token->namespace;