Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: dd8ad147dd6b32cbd484a0974aead0792967eacb
https://github.com/WebKit/WebKit/commit/dd8ad147dd6b32cbd484a0974aead0792967eacb
Author: Anne van Kesteren <[email protected]>
Date: 2026-06-05 (Fri, 05 Jun 2026)
Changed paths:
M Source/WebCore/dom/NameValidation.cpp
Log Message:
-----------
Simplify NameValidation by using contains and containsOnly
https://bugs.webkit.org/show_bug.cgi?id=315737
rdar://178698891
Reviewed by Ryosuke Niwa and Darin Adler.
This does result in the first code unit being checked twice for the
checks that have special rules for the first code unit, but using
substring seemed more expensive. And using contains and containsOnly
should be more efficient as there's less is8Bit branching.
Tested neutral on Speedometer.
Canonical link: https://commits.webkit.org/314632@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications