Skip to content

Add more document.readyState coverage#60293

Merged
zcorpan merged 1 commit into
masterfrom
annevk/readystate
Jun 1, 2026
Merged

Add more document.readyState coverage#60293
zcorpan merged 1 commit into
masterfrom
annevk/readystate

Conversation

@annevk

@annevk annevk commented May 30, 2026

Copy link
Copy Markdown
Member

No description provided.

@zcorpan zcorpan merged commit a86c04b into master Jun 1, 2026
29 checks passed
@zcorpan zcorpan deleted the annevk/readystate branch June 1, 2026 08:32
webkit-commit-queue pushed a commit to annevk/WebKit that referenced this pull request Jun 1, 2026
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: web-platform-tests/wpt#60293
Canonical link: https://commits.webkit.org/314295@main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants