[Webkit-unassigned] [Bug 259080] New: URL pathname and search setter incorrectly strips trailing spaces
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jul 10 15:43:22 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=259080
Bug ID: 259080
Summary: URL pathname and search setter incorrectly strips
trailing spaces
Product: WebKit
Version: Safari Technology Preview
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: New Bugs
Assignee: webkit-unassigned at lists.webkit.org
Reporter: hello at lcas.dev
Test case:
```
const url = new URL('http://example.com/');
url.pathname = '/ ';
url.search = '? ';
url.hash = '# ';
console.log(url.href);
```
Implementations:
```
// whatwg-url at 13.0.0
"http://example.com/%20?%20#%20" ✅
// Chrome 117.0.5881.0
"http://example.com/%20?%20#%20" ✅
// Firefox 114.0.2
"http://example.com/%20?%20#%20" ✅
// Safari TP 171
"http://example.com/?#%20" ❌
// Deno 1.35.0
"http://example.com/?%20#%20" ❌
// node at 20.4.0
"http://example.com/%20?%20#%20" ✅
```
New tests in https://github.com/web-platform-tests/wpt/pull/40959
--
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/20230710/e30e842e/attachment.htm>
More information about the webkit-unassigned
mailing list