Bug 255618

Summary: Add support for duplicate attributes to the HTML fast parser
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-04-18 12:08:31 PDT
The HTML fast parser already had logic to detect duplicate attributes, so it was already doing most the work. However, when finding a duplicate, it would just abort and let the full HTML parser deal with the input string. It is not much more work to properly support duplicate attributes and it doesn't slow down the parser on Speedometer. As a result, I think we should add the functionality.
Comment 1 Chris Dumez 2023-04-18 12:11:53 PDT
Pull request: https://github.com/WebKit/WebKit/pull/12878
Comment 2 EWS 2023-04-19 09:19:32 PDT
Committed 263136@main (55036f71e776): <https://commits.webkit.org/263136@main>

Reviewed commits have been landed. Closing PR #12878 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2023-04-19 09:20:21 PDT
<rdar://problem/108264432>