Make WordPress Core


Ignore:
Timestamp:
07/05/2024 12:50:19 AM (10 months ago)
Author:
dmsnell
Message:

HTML API: Support SELECT insertion mode.

As part of work to add more spec support to the HTML API, this patch adds
support for the SELECT, OPTION, and OPTGROUP elements, including the
requisite support for the IN SELECT insertion mode.

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

Props dmsnell, jonsurrell.
See #61576.

File:
1 edited

Legend:

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

    r57508 r58677  
    5959     */
    6060    public function test_generate_implied_end_tags_needs_support() {
    61         $this->ensure_support_is_added_everywhere( 'OPTGROUP' );
    62         $this->ensure_support_is_added_everywhere( 'OPTION' );
    6361        $this->ensure_support_is_added_everywhere( 'RB' );
    6462        $this->ensure_support_is_added_everywhere( 'RP' );
     
    8078        $this->ensure_support_is_added_everywhere( 'CAPTION' );
    8179        $this->ensure_support_is_added_everywhere( 'COLGROUP' );
    82         $this->ensure_support_is_added_everywhere( 'OPTGROUP' );
    83         $this->ensure_support_is_added_everywhere( 'OPTION' );
    8480        $this->ensure_support_is_added_everywhere( 'RB' );
    8581        $this->ensure_support_is_added_everywhere( 'RP' );
Note: See TracChangeset for help on using the changeset viewer.