mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-30 07:20:01 +01:00
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:
parent
e0d47a45b1
commit
1dbf1ddc5a
@ -2433,6 +2433,7 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->state->stack_of_open_elements->remove_node( $node );
|
$this->state->stack_of_open_elements->remove_node( $node );
|
||||||
|
return true;
|
||||||
} else {
|
} else {
|
||||||
/*
|
/*
|
||||||
* > If the stack of open elements does not have a form element in scope,
|
* > If the stack of open elements does not have a form element in scope,
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user