Make WordPress Core


Ignore:
Timestamp:
01/23/2024 01:49:06 AM (8 months ago)
Author:
dmsnell
Message:

HTML API: Support PARAM, SOURCE, and TRACK tags.

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

  • PARAM, SOURCE, TRACK

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.

Props jonsurrell, dmsnell
Fixes #60283

File:
1 edited

Legend:

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

    r57317 r57326  
    207207            'LINK'   => array( 'LINK' ),
    208208            'META'   => array( 'META' ),
     209            'PARAM'  => array( 'PARAM' ),
    209210            'SOURCE' => array( 'SOURCE' ),
    210211            'TRACK'  => array( 'TRACK' ),
     
    265266            'OPTGROUP'  => array( 'OPTGROUP' ),
    266267            'OPTION'    => array( 'OPTION' ),
    267             'PARAM'     => array( 'PARAM' ),
    268268            'PLAINTEXT' => array( 'PLAINTEXT' ),
    269269            'RB'        => array( 'RB' ),
     
    274274            'SCRIPT'    => array( 'SCRIPT' ),
    275275            'SELECT'    => array( 'SELECT' ),
    276             'SOURCE'    => array( 'SOURCE' ),
    277276            'STYLE'     => array( 'STYLE' ),
    278277            'SVG'       => array( 'SVG' ),
     
    287286            'TITLE'     => array( 'TITLE' ),
    288287            'TR'        => array( 'TR' ),
    289             'TRACK'     => array( 'TRACK' ),
    290288            'XMP'       => array( 'XMP' ),
    291289        );
Note: See TracChangeset for help on using the changeset viewer.