Skip to content

Commit

Permalink
Incorporate fixes from Core PR
Browse files Browse the repository at this point in the history
  • Loading branch information
dmsnell committed Dec 13, 2023
1 parent 43b9a9c commit 06757be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -116,7 +116,7 @@ public function has_element_in_specific_scope( $tag_name, $termination_list ) {
}

if (
'(internal: H1 - H6 - do not use)' === $tag_name &&
'(internal: H1 through H6 - do not use)' === $tag_name &&
in_array( $node->node_name, array( 'H1', 'H2', 'H3', 'H4', 'H5', 'H6' ), true )
) {
return true;
Expand Down
Expand Up @@ -733,7 +733,7 @@ private function step_in_body() {
case '-H4':
case '-H5':
case '-H6':
if ( ! $this->state->stack_of_open_elements->has_element_in_scope( '(internal: H1 - H6 - do not use)' ) ) {
if ( ! $this->state->stack_of_open_elements->has_element_in_scope( '(internal: H1 through H6 - do not use)' ) ) {
/*
* This is a parse error; ignore the token.
*
Expand Down

0 comments on commit 06757be

Please sign in to comment.