Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 1e8516439d6922c2ad2664702289825935136ef0
https://github.com/WebKit/WebKit/commit/1e8516439d6922c2ad2664702289825935136ef0
Author: Yeonghan Kim <[email protected]>
Date: 2026-02-24 (Tue, 24 Feb 2026)
Changed paths:
A
LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/microtask_before_prepare_the_script_element-02-expected.txt
A
LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/microtask_before_prepare_the_script_element-02.xhtml
M Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp
Log Message:
-----------
[XML Parser] Perform microtask checkpoint before preparing script element
https://bugs.webkit.org/show_bug.cgi?id=308452
Reviewed by Ryosuke Niwa and Anne van Kesteren.
The HTML spec requires performing a microtask checkpoint before the
"prepare the script element" step when parsing XHTML documents.
Without this, microtasks queued during element insertion do not run
before script preparation.
Test:
imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/microtask_before_prepare_the_script_element-02.xhtml
*
LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/microtask_before_prepare_the_script_element-02-expected.txt:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/microtask_before_prepare_the_script_element-02.xhtml:
Added.
* Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp:
(WebCore::XMLDocumentParser::endElementNs): Add microtask checkpoint before
prepareScript.
Canonical link: https://commits.webkit.org/308171@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications