mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-08 17:38:26 +01:00
HTML API: Fix typo setting the wrong self-closing flag.
The HTML Processor tracks whether a token was found with the self-closing flag. Depending on the context, this flag may or may not indicate that the element is self closing. Unfortunately it's been tracking the wrong flag: it's been tracking the end-tag flag, which indicates that a token is an end tag. In this patch the right flag is set in the HTML Processor. This hasn't been an issue because the HTML Processor doesn't yet read that stored flag, but it's an important fix to make before adding support for foreign content (SVG and MathML) since that behavior depends on reading the correct flag. Follow-up to [56274]. Props dmsnell. Built from https://develop.svn.wordpress.org/trunk@57528 git-svn-id: http://core.svn.wordpress.org/trunk@57029 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
22b4a0870d
commit
9fb7267542
@ -548,7 +548,7 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor {
|
||||
$this->state->current_token = new WP_HTML_Token(
|
||||
$this->bookmark_tag(),
|
||||
$this->get_tag(),
|
||||
$this->is_tag_closer(),
|
||||
$this->has_self_closing_flag(),
|
||||
$this->release_internal_bookmark_on_destruct
|
||||
);
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.5-alpha-57527';
|
||||
$wp_version = '6.5-alpha-57528';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user