Bug 260665

Summary: Avoid constructing a DocumentFragment unnecessarily in DOMParser::parseFromString()
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: DOMAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Chris Dumez 2023-08-24 10:33:47 PDT
Avoid constructing a DocumentFragment unnecessarily in DOMParser::parseFromString(). Have the HTML fast parser construct the subtree under the <body> element directly instead.
Comment 1 Chris Dumez 2023-08-24 10:35:06 PDT
Pull request: https://github.com/WebKit/WebKit/pull/17023
Comment 2 EWS 2023-08-24 12:43:10 PDT
Committed 267242@main (903209cb2740): <https://commits.webkit.org/267242@main>

Reviewed commits have been landed. Closing PR #17023 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2023-08-24 12:44:17 PDT
<rdar://problem/114396616>