Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: dd8dcc11bb92e7c402309e5781b10a7c9b4b7fb2
      
https://github.com/WebKit/WebKit/commit/dd8dcc11bb92e7c402309e5781b10a7c9b4b7fb2
  Author: Anne van Kesteren <[email protected]>
  Date:   2026-06-01 (Mon, 01 Jun 2026)

  Changed paths:
    R LayoutTests/fast/dom/Document/createdDocument-readyState-expected.txt
    R LayoutTests/fast/dom/Document/createdDocument-readyState.html
    M LayoutTests/fast/dom/Document/readystate-expected.txt
    M LayoutTests/fast/dom/Document/readystate.html
    M 
LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/resource-metadata-management/document-readyState-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/resource-metadata-management/document-readyState.html
    M 
LayoutTests/imported/w3c/web-platform-tests/shadow-dom/untriaged/shadow-trees/upper-boundary-encapsulation/test-009-expected.txt
    M Source/WebCore/dom/DOMImplementation.cpp

  Log Message:
  -----------
  createHTMLDocument() should not leave body in parsing state
https://bugs.webkit.org/show_bug.cgi?id=315847

Reviewed by Ryosuke Niwa.

createHTMLDocument() used to populate the document with a write() call
without a corresponding close() call. This meant that IsParsingChildren
did not get unset, impacting :last-child and friends. A subtest of
shadow-dom/untriaged/shadow-trees/upper-boundary-encapsulation/test-009.html
caught this.

So we re-implement createHTMLDocument() the way the specification
requires. This also impacts readyState (it's now "complete" instead of
"loading") and we take this opportunity to upstream the local tests.

Upstream: https://github.com/web-platform-tests/wpt/pull/60293
Canonical link: https://commits.webkit.org/314295@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to