Make WordPress Core

Changeset 60886


Ignore:
Timestamp:
10/01/2025 12:13:35 AM (10 months ago)
Author:
westonruter
Message:

Editor: Add 6 missing HTML5 semantic tags (data, meter, progress, search, time, wbr) and their attributes to KSES.

  1. data (attribute: value)
  2. meter (attributes: high, low, max, min, optimum, value)
  3. progress (attributes: max, value)
  4. search
  5. time (attribute: datetime)
  6. wbr

Props ramiy, rollybueno, westonruter.
Fixes #63786.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/kses.php

    r60884 r60886  
    139139                        'width'   => true,
    140140                ),
     141                'data'       => array(
     142                        'value' => true,
     143                ),
    141144                'del'        => array(
    142145                        'datetime' => true,
     
    244247                        'type' => true,
    245248                ),
     249                'meter'      => array(
     250                        'high'    => true,
     251                        'low'     => true,
     252                        'max'     => true,
     253                        'min'     => true,
     254                        'optimum' => true,
     255                        'value'   => true,
     256                ),
    246257                'nav'        => array(
    247258                        'align' => true,
     
    263274                        'width' => true,
    264275                ),
     276                'progress'   => array(
     277                        'max'   => true,
     278                        'value' => true,
     279                ),
    265280                'q'          => array(
    266281                        'cite' => true,
     
    273288                's'          => array(),
    274289                'samp'       => array(),
     290                'search'     => array(),
    275291                'span'       => array(
    276292                        'align' => true,
     
    354370                        'valign'  => true,
    355371                ),
     372                'time'       => array(
     373                        'datetime' => true,
     374                ),
    356375                'title'      => array(),
    357376                'tr'         => array(
     
    394413                        'width'       => true,
    395414                ),
     415                'wbr'        => array(),
    396416        );
    397417
Note: See TracChangeset for help on using the changeset viewer.