Bug 308452
| Summary: | [XML Parser] Perform microtask checkpoint before preparing script element | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | soosungp33 |
| Component: | XML | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | cdumez, rniwa, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | All | ||
| OS: | All | ||
soosungp33
The HTML spec [1] requires performing a microtask checkpoint before the "prepare the script element" step when an XML script element's end tag is parsed.
Currently WebKit skips this checkpoint, so microtask callbacks queued during element insertion are not executed before script preparation.
This causes the WPT test microtask_before_prepare_the_script_element-02.xhtml [2] to fail.
Chromium is addressing the same issue:
https://issues.chromium.org/issues/439639184
https://chromium-review.googlesource.com/c/chromium/src/+/7587954
[1] https://html.spec.whatwg.org/#parsing-xhtml-documents
[2] https://wpt.fyi/results/html/webappapis/scripting/event-loops/microtask_before_prepare_the_script_element-02.xhtml?label=master&label=experimental&aligned
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Ryosuke Niwa
https://github.com/WebKit/WebKit/pull/59228
EWS
Committed 308171@main (1e8516439d69): <https://commits.webkit.org/308171@main>
Reviewed commits have been landed. Closing PR #59228 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/171130764>