Make WordPress Core


Ignore:
Timestamp:
01/19/2024 10:05:37 PM (6 months ago)
Author:
dmsnell
Message:

HTML API: Add support for PRE and LISTING elements.

Adds support for the following HTML elements to the HTML Processor:

  • PRE, LISTING

Previously, these elements were not supported and the HTML Processor would bail when encountering them. Now, with this patch applied, it will proceed to parse an HTML document when encountering those tags.

Developed in WordPress/wordpress-develop#5903

Props jonsurrell, dmsnell
Fixes #60283

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/html-api/wpHtmlProcessor.php

    r57316 r57317  
    255255            'INPUT'     => array( 'INPUT' ),
    256256            'LINK'      => array( 'LINK' ),
    257             'LISTING'   => array( 'LISTING' ),
    258257            'MARQUEE'   => array( 'MARQUEE' ),
    259258            'MATH'      => array( 'MATH' ),
     
    268267            'PARAM'     => array( 'PARAM' ),
    269268            'PLAINTEXT' => array( 'PLAINTEXT' ),
    270             'PRE'       => array( 'PRE' ),
    271269            'RB'        => array( 'RB' ),
    272270            'RP'        => array( 'RP' ),
Note: See TracChangeset for help on using the changeset viewer.