Bug 269047

Summary: Connect body to the document before invoking tryFastParsingHTMLFragment
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: DOMAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   

Description Ryosuke Niwa 2024-02-08 21:43:12 PST
It's more efficient to connect body to the document before invoking tryFastParsingHTMLFragment since that'll avoid secondary insertedIntoAncestor traversal on the newly created subtree.
Comment 1 Ryosuke Niwa 2024-02-08 21:55:58 PST
Pull request: https://github.com/WebKit/WebKit/pull/24129
Comment 2 EWS 2024-02-10 14:22:51 PST
Committed 274429@main (2652615cd5bd): <https://commits.webkit.org/274429@main>

Reviewed commits have been landed. Closing PR #24129 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2024-02-10 14:23:13 PST
<rdar://problem/122720540>