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.
Pull request: https://github.com/WebKit/WebKit/pull/12878
Committed 263136@main (55036f71e776): <https://commits.webkit.org/263136@main> Reviewed commits have been landed. Closing PR #12878 and removing active labels.
<rdar://problem/108264432>