Bug 260665 - Avoid constructing a DocumentFragment unnecessarily in DOMParser::parseFromString()
Summary: Avoid constructing a DocumentFragment unnecessarily in DOMParser::parseFromSt...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-08-24 10:33 PDT by Chris Dumez
Modified: 2023-08-24 12:44 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>