Make WordPress Core

Opened 7 weeks ago

Closed 6 weeks ago

Last modified 5 weeks ago

#65581 closed task (blessed) (fixed)

HTML API: Migrate html5lib-tests to web-platform-tests

Reported by: jonsurrell Owned by: jonsurrell
Priority: normal Milestone: 7.1
Component: HTML API Version:
Severity: normal Keywords: has-patch has-unit-tests
Cc: Focuses: tests

Description

html5lib-tests have been taken over by web-platform-tests (WPT).

Update the HTML API tests to point to WPT instead of legacy html5lib-tests.

The updated test suite in WPT can be found here.

Change History (6)

#1 @jonsurrell
7 weeks ago

  • Owner set to jonsurrell
  • Status newaccepted

This ticket was mentioned in PR #12423 on WordPress/wordpress-develop by @jonsurrell.


6 weeks ago
#2

  • Keywords has-patch has-unit-tests added

Update html5lib-tests to web-platform-tests.

The HTML API uses an external test suite to test how it processes HTML. That test suite has become part of web-platform-tests/wpt where it will continue to be maintained.

This also updates the test data to the latest version: https://github.com/web-platform-tests/wpt/commit/3ec8a239e72307c12eacc1ede395eea12191512d

Trac ticket: https://core.trac.wordpress.org/ticket/65581

## Use of AI Tools

@jonsurrell commented on PR #12423:


6 weeks ago
#3

Note that the HTML API tests are running on CI with the updated `--group`.

TEST_GROUPS: html-api-web-platform-tests

Tests: 1513, Assertions: 1091, Skipped: 422.

#4 @jonsurrell
6 weeks ago

  • Resolutionfixed
  • Status acceptedclosed

In 62655:

HTML API: Migrate html5lib-tests to web-platform-tests.

The HTML API uses an external test suite. That test suite, formerly html5lib-tests, is now maintained as part of web-platform-tests, available at https://github.com/web-platform-tests/wpt. Update the test suite references accordingly and refresh the test data to git commit f4c2ec1d071ccbae305f7aea4e883b5bd0f5c0df.

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

Fixes #65581.

#5 @jonsurrell
6 weeks ago

In 62687:

HTML API: Add HTML processing instruction support.

The HTML specification was updated to include _processing instructions_ like <?wp-processing-instruction ...data?>. Implement processing instruction support in the HTML API.

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

Props jonsurrell, dmsnell, westonruter.
Fixes #65582. See #65581.

#6 @sabernhardt
5 weeks ago

  • Milestone Awaiting Review7.1
Note: See TracTickets for help on using tickets.