Make WordPress Core


Ignore:
Timestamp:
11/16/2021 07:40:36 PM (3 years ago)
Author:
hellofromTonya
Message:

Formatting: Add additional support for single and nestable tags in force_balance_tags().

Adds track and wbr support for single tags.

Adds article, aside, details, figure, and section for nestable tags.

Updates tests.

Follow-up to [5805], [21828], [45929].

Props glendaviesnz, costdev, talldanwp, ramonopoly, sergeybiryukov.
Fixes #50225.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/formatting/balanceTags.php

    r52010 r52188  
    88    public function nestable_tags() {
    99        return array(
     10            array( 'article' ),
     11            array( 'aside' ),
    1012            array( 'blockquote' ),
     13            array( 'details' ),
    1114            array( 'div' ),
     15            array( 'figure' ),
    1216            array( 'object' ),
    1317            array( 'q' ),
     18            array( 'section' ),
    1419            array( 'span' ),
    1520        );
     
    3540            array( 'param' ),
    3641            array( 'source' ),
     42            array( 'track' ),
     43            array( 'wbr' ),
    3744        );
    3845    }
Note: See TracChangeset for help on using the changeset viewer.