Dennis Snell 3b9aefb06c 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.



git-svn-id: https://develop.svn.wordpress.org/trunk@58010 602fd350-edb4-49c9-b593-d223f7449a82
2024-04-16 12:06:46 +00:00

916 B

html5lib-tests

This directory contains a third-party test suite used for testing the WordPress HTML API.

html5lib-tests can be found on GitHub at html5lib/html5lib-tests.

The necessary files have been copied to this directory:

  • AUTHORS.rst
  • LICENSE
  • README.md
  • tree-construction/README.md
  • tree-construction/*.dat

The version of these files was taken from the git commit with SHA a9f44960a9fedf265093d22b2aa3c7ca123727b9.

Updating

If there have been changes to the html5lib-tests repository, this test suite can be updated. In order to update:

  1. Check out the latest version of git repository mentioned above.
  2. Copy the files listed above into this directory.
  3. Update the SHA mentioned in this README file with the new html5lib-tests SHA.