Make WordPress Core

Changeset 58010


Ignore:
Timestamp:
04/16/2024 12:06:46 PM (5 weeks ago)
Author:
dmsnell
Message:

HTML API: Validate HTML Processor against external test suite from html5lib.

In this patch, the test suite from html5lib validates the tree-construction
steps in the HTML Processor to ensure that they are behaving according to the
HTML specification. This suite of tests is also used by the servo project to
test its html5ever package.

A new test module in the HTML API transforms HTML Processor output to match
the expected tree shape from the external tests. For cases where there are
tests validating behaviors of unsupported HTML tags and constructs, the tests
are marked as skipped. As the HTML API continues to expand its own support,
the number of skipped tests will automatically shrink down towards zero.

Additional tests are skipped through the SKIP_TEST array in the test runner.

Fixes #60227.
See #58517.
Props azaozz, costdev, dmsnell, hellofromtonya, jonsurrell, jorbin, swisspidy.

Location:
trunk
Files:
64 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpunit.xml.dist

    r56669 r58010  
    2929            <group>ms-required</group>
    3030            <group>external-http</group>
     31            <group>html-api-html5lib-tests</group>
    3132        </exclude>
    3233    </groups>
  • trunk/tests/phpunit/multisite.xml

    r56669 r58010  
    3434            <group>external-http</group>
    3535            <group>oembed-headers</group>
     36            <group>html-api-html5lib-tests</group>
    3637        </exclude>
    3738    </groups>
Note: See TracChangeset for help on using the changeset viewer.