HTML API: Ensure form closer tokens are reachable.

Form tag closers have complicated conditions. There was a bug where the HTML Processor would not stop correctly on a FORM tag closer token.
This changeset ensures that that token is reachable.

Developed in https://github.com/WordPress/wordpress-develop/pull/7582
Discussed in https://core.trac.wordpress.org/ticket/61576

Follow-up to [58779].

Props jonsurrell.
Fixes #61576.
Built from https://develop.svn.wordpress.org/trunk@59248


git-svn-id: http://core.svn.wordpress.org/trunk@58640 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Bernhard Reiter 2024-10-17 17:48:19 +00:00
parent e0d47a45b1
commit 1dbf1ddc5a
2 changed files with 2 additions and 1 deletions

View File

@ -2433,6 +2433,7 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor {
}
$this->state->stack_of_open_elements->remove_node( $node );
return true;
} else {
/*
* > If the stack of open elements does not have a form element in scope,

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.7-beta3-59247';
$wp_version = '6.7-beta3-59248';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.