Bug 257101 - Deprecate isSpaceOrNewline
Summary: Deprecate isSpaceOrNewline
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Anne van Kesteren
URL:
Keywords: InRadar
Depends on:
Blocks: 255467
  Show dependency treegraph
 
Reported: 2023-05-21 00:59 PDT by Anne van Kesteren
Modified: 2023-05-22 12:34 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 Anne van Kesteren 2023-05-21 00:59:33 PDT
It looks like it's Unicode White_Space, but it misses U+0085 and U+00A0. Some callers account for the latter, but never the former. And many callers don't even realize. Given that isUnicodeWhitespace exists callers could migrate to that instead.

simplifyWhiteSpace and stripWhiteSpace that use this underneath will be dealt with in bug 257084.
Comment 1 Radar WebKit Bug Importer 2023-05-21 00:59:46 PDT
<rdar://problem/109621392>
Comment 2 Anne van Kesteren 2023-05-21 01:03:30 PDT
Pull request: https://github.com/WebKit/WebKit/pull/14155
Comment 3 EWS 2023-05-22 12:34:36 PDT
Committed 264344@main (c57f446617de): <https://commits.webkit.org/264344@main>

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