[Webkit-unassigned] [Bug 255467] New: isASCIISpace vs isHTMLSpace
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Apr 14 13:05:05 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=255467
Bug ID: 255467
Summary: isASCIISpace vs isHTMLSpace
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebCore Misc.
Assignee: webkit-unassigned at lists.webkit.org
Reporter: annevk at annevk.nl
CC: cdumez at apple.com, darin at apple.com
In WebKit isASCIISpace includes U+000B, which is almost always wrong for web platform purposes. In fact, I'm not sure where U+000B is considered whitespace in the web platform. Pretty much everything I'm familiar with uses https://infra.spec.whatwg.org/#ascii-whitespace or a subset thereof (e.g., HTTP uses a subset).
Yet given isASCIISpace is a rather attractive name we use it in a number of places that likely want isHTMLSpace instead. E.g., it appears our CSP code does this wrong.
Curious if people could give the historical context here and whether we should maybe consider deprecating isASCIISpace.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230414/0bf880bb/attachment-0001.htm>
More information about the webkit-unassigned
mailing list