Make WordPress Core


Ignore:
Timestamp:
07/30/2024 06:44:45 PM (8 months ago)
Author:
dmsnell
Message:

HTML API: Add TEMPLATE and related support in HTML Processor.

As part of work to add more spec support to the HTML API, this patch adds
support for the IN TEMPLATE and IN HEAD insertion modes. These changes are
primarily about adding support for TEMPLATE elements in the HTML Processor,
but include support for other tags commonly found in the document head, such
as LINK, META, SCRIPT, STYLE, and TITLE.

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

Props: dmsnell, jonsurrell, westonruter.
See #61576.

File:
1 edited

Legend:

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

    r58806 r58833  
    4747            'AUDIO',
    4848            'B',
     49            'BASE',
    4950            'BDI',
    5051            'BDO',
     52            'BGSOUND', // Deprectated.
    5153            'BIG',
    5254            'BLINK', // Deprecated.
     
    9496            'LABEL',
    9597            'LEGEND',
     98            'LINK',
    9699            'LISTING', // Deprecated.
    97100            'MAIN',
     
    100103            'MARQUEE', // Deprecated.
    101104            'MENU',
     105            'META',
    102106            'METER',
    103107            'MULTICOL', // Deprecated.
     
    179183    public static function data_unsupported_elements() {
    180184        $unsupported_elements = array(
    181             'BASE',
    182             'BGSOUND', // Deprecated; self-closing if self-closing flag provided, otherwise normal.
    183185            'BODY',
    184186            'FRAME',
     
    187189            'HTML',
    188190            'IFRAME',
    189             'LINK',
    190191            'MATH',
    191             'META',
    192192            'NOEMBED', // Neutralized.
    193193            'NOFRAMES', // Neutralized.
     
    196196            'STYLE',
    197197            'SVG',
    198             'TEMPLATE',
    199198            'TEXTAREA',
    200199            'TITLE',
Note: See TracChangeset for help on using the changeset viewer.