Bug 261077

Summary: [Regression] pattern attribute handling for invalid regular expressions (unicode-invalid-01)
Product: WebKit Reporter: Ahmad Saleem <ahmad.saleem792>
Component: FormsAssignee: Michael Saboff <msaboff>
Status: RESOLVED FIXED    
Severity: Normal CC: akeerthi, annevk, cdumez, karlcow, msaboff, rniwa, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: BrowserCompat, InRadar, WPTImpact
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
URL: https://jsfiddle.net/sjo283vg/show

Description Ahmad Saleem 2023-09-02 18:47:17 PDT
Hi Team,

In attached test case, we regressed following in STP177 compared to Safari 16.6:

> patternMismatchFor("unicode-invalid-01") should be false. Was true
> patternMismatchFor("wrong-email-address") should be true. Was false.

Just wanted to raise so we can fix it.

Thanks!
Comment 1 Anne van Kesteren 2023-09-02 23:20:11 PDT
Chromium and Gecko also fail the wrong-email-address one (as well as disabled). But they don't fail unicode-invalid-01 so that one seems like a problem.
Comment 2 Radar WebKit Bug Importer 2023-09-09 18:48:17 PDT
<rdar://problem/115234392>
Comment 3 Aditya Keerthi 2023-10-17 14:01:54 PDT
Retitling, since one of the "failures" matches all browsers.
Comment 4 Michael Saboff 2023-10-18 16:08:13 PDT
Pull request: https://github.com/WebKit/WebKit/pull/19255
Comment 5 EWS 2023-10-18 21:57:22 PDT
Committed 269502@main (cd16ef7144b7): <https://commits.webkit.org/269502@main>

Reviewed commits have been landed. Closing PR #19255 and removing active labels.