Make WordPress Core


Ignore:
Timestamp:
07/10/2026 05:22:53 PM (8 weeks ago)
Author:
jonsurrell
Message:

HTML API: Update SELECT element parsing according to specification.

The HTML standard was updated to support customizable SELECT elements. Update HTML API parsing accordingly.

Developed in https://github.com/WordPress/wordpress-develop/pull/9298.

Props jonsurrell, dmsnell.
Fixes #63736.

File:
1 edited

Legend:

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

    r62687 r62689  
    2828         */
    2929        const SKIP_TESTS = array(
    30                 'noscript01/line0014'       => 'Unimplemented: This parser does not add missing attributes to existing HTML or BODY tags.',
    31                 'tests14/line0022'          => 'Unimplemented: This parser does not add missing attributes to existing HTML or BODY tags.',
    32                 'tests14/line0055'          => 'Unimplemented: This parser does not add missing attributes to existing HTML or BODY tags.',
    33                 'tests19/line0488'          => 'Unimplemented: This parser does not add missing attributes to existing HTML or BODY tags.',
    34                 'tests19/line0500'          => 'Unimplemented: This parser does not add missing attributes to existing HTML or BODY tags.',
    35                 'tests19/line1079'          => 'Unimplemented: This parser does not add missing attributes to existing HTML or BODY tags.',
    36                 'tests2/line0207'           => 'Unimplemented: This parser does not add missing attributes to existing HTML or BODY tags.',
    37                 'tests2/line0686'           => 'Unimplemented: This parser does not add missing attributes to existing HTML or BODY tags.',
    38                 'tests2/line0697'           => 'Unimplemented: This parser does not add missing attributes to existing HTML or BODY tags.',
    39                 'tests2/line0709'           => 'Unimplemented: This parser does not add missing attributes to existing HTML or BODY tags.',
    40                 'menuitem-element/line0161' => 'Unimplemented: This parser does not support customizable SELECT element content.',
    41                 'tests9/line0048'           => 'Unimplemented: This parser does not support customizable SELECT element content.',
    42                 'tests9/line0059'           => 'Unimplemented: This parser does not support customizable SELECT element content.',
    43                 'tests9/line0299'           => 'Unimplemented: This parser does not support customizable SELECT element content.',
    44                 'tests10/line0035'          => 'Unimplemented: This parser does not support customizable SELECT element content.',
    45                 'tests10/line0046'          => 'Unimplemented: This parser does not support customizable SELECT element content.',
    46                 'tests10/line0259'          => 'Unimplemented: This parser does not support customizable SELECT element content.',
    47                 'tests18/line0227'          => 'Unimplemented: This parser does not support customizable SELECT element content.',
    48                 'webkit01/line0231'         => 'Unimplemented: This parser does not add missing attributes to existing HTML or BODY tags.',
    49                 'webkit02/line0557'         => 'Unimplemented: This parser does not support customizable SELECT element content.',
    50                 'webkit02/line0590'         => 'Unimplemented: This parser does not support customizable SELECT element content.',
    51                 'webkit02/line0611'         => 'Unimplemented: This parser does not support customizable SELECT element content.',
    52                 'webkit02/line0624'         => 'Unimplemented: This parser does not support customizable SELECT element content.',
    53                 'webkit02/line0637'         => 'Unimplemented: This parser does not support customizable SELECT element content.',
    54                 'webkit02/line0652'         => 'Unimplemented: This parser does not support customizable SELECT element content.',
    55                 'webkit02/line0666'         => 'Unimplemented: This parser does not support customizable SELECT element content.',
    56                 'webkit02/line0692'         => 'Unimplemented: This parser does not support customizable SELECT element content.',
    57                 'webkit02/line0706'         => 'Unimplemented: This parser does not support customizable SELECT element content.',
    58                 'webkit02/line0732'         => 'Unimplemented: This parser does not support customizable SELECT element content.',
    59                 'webkit02/line0748'         => 'Unimplemented: This parser does not support customizable SELECT element content.',
     30                'noscript01/line0014' => 'Unimplemented: This parser does not add missing attributes to existing HTML or BODY tags.',
     31                'tests14/line0022'    => 'Unimplemented: This parser does not add missing attributes to existing HTML or BODY tags.',
     32                'tests14/line0055'    => 'Unimplemented: This parser does not add missing attributes to existing HTML or BODY tags.',
     33                'tests19/line0488'    => 'Unimplemented: This parser does not add missing attributes to existing HTML or BODY tags.',
     34                'tests19/line0500'    => 'Unimplemented: This parser does not add missing attributes to existing HTML or BODY tags.',
     35                'tests19/line1079'    => 'Unimplemented: This parser does not add missing attributes to existing HTML or BODY tags.',
     36                'tests2/line0207'     => 'Unimplemented: This parser does not add missing attributes to existing HTML or BODY tags.',
     37                'tests2/line0686'     => 'Unimplemented: This parser does not add missing attributes to existing HTML or BODY tags.',
     38                'tests2/line0697'     => 'Unimplemented: This parser does not add missing attributes to existing HTML or BODY tags.',
     39                'tests2/line0709'     => 'Unimplemented: This parser does not add missing attributes to existing HTML or BODY tags.',
     40                'webkit01/line0231'   => 'Unimplemented: This parser does not add missing attributes to existing HTML or BODY tags.',
     41                'webkit02/line0692'   => 'Unimplemented: The parser does not implement the "maybe clone an option into selectedcontent" algorithm.',
     42                'webkit02/line0732'   => 'Unimplemented: The parser does not implement the "maybe clone an option into selectedcontent" algorithm.',
     43                'webkit02/line0748'   => 'Unimplemented: The parser does not implement the "maybe clone an option into selectedcontent" algorithm.',
    6044        );
    6145
Note: See TracChangeset for help on using the changeset viewer.