Closed Bug 2078082 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63262 - HTML parser: test that search is in the special category

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 63262 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/63262
Details from upstream follow.

Gérald Barré <git@meziantou.net> wrote:

HTML parser: test that search is in the special category

The HTML Standard lists search in the special category, but search-element.dat only tests the start and end tags. This adds tree construction tests for the algorithms that check the special category:

  • the adoption agency algorithm uses search as the furthest block (<a><search>x</a>y, <a><search>x<p>y<a>z);
  • the li and dd/dt start tags in the "in body" insertion mode stop at search (<li>a<search><li>b, <dd>a<search><dt>b);
  • "any other end tag" is ignored when search is on the stack above the matching element (<x><search></x>y).

Results of html5lib_{url,write,write_single}.html?file=search-element with Playwright builds (Chromium 153.0.8010.12, Firefox 155.0, WebKit 26.6):

Test Chromium Firefox WebKit
5 new tests FAIL PASS FAIL
Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

The PR was not expected to affect any tests, but the try push wasn't a success. Check the try results for infrastructure issues

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/277c48daf912 https://hg.mozilla.org/integration/autoland/rev/56c6ae4aada4 [wpt PR 63262] - HTML parser: test that search is in the special category, a=testonly

Test result changes from PR not available.

Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
You need to log in before you can comment on or make changes to this bug.