HTML API: Add missing NOBR end tag handling to HTML Processor.

When the HTML Processor was introduced, an oversight led to a missing case for handling a closing `NOBR` tag. The `NOBR` element is a deprecated tag and should not be used.

This patch adds the missing case so that the deprecated `NOBR` end tag is appropriately handled.

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

Follow-up to [56274].

Props jonsurrell.
See #61576.

Built from https://develop.svn.wordpress.org/trunk@58967


git-svn-id: http://core.svn.wordpress.org/trunk@58363 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
dmsnell 2024-09-02 22:03:15 +00:00
parent d7f9d30df8
commit eac35f6ae6
2 changed files with 2 additions and 1 deletions

View File

@ -2415,6 +2415,7 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor {
case '-EM':
case '-FONT':
case '-I':
case '-NOBR':
case '-S':
case '-SMALL':
case '-STRIKE':

View File

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