Skip to content

Commit d46466f

Browse files
committed
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 #7282 Discussed in https://core.trac.wordpress.org/ticket/61576 Follow-up to [56274]. Props jonsurrell. See #61576. git-svn-id: https://develop.svn.wordpress.org/trunk@58967 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 9bf0448 commit d46466f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/wp-includes/html-api/class-wp-html-processor.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2415,6 +2415,7 @@ private function step_in_body(): bool {
24152415
case '-EM':
24162416
case '-FONT':
24172417
case '-I':
2418+
case '-NOBR':
24182419
case '-S':
24192420
case '-SMALL':
24202421
case '-STRIKE':

0 commit comments

Comments
 (0)