[Webkit-unassigned] [Bug 171345] New: URLSearchParams should be reflective
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Apr 26 15:15:17 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=171345
Bug ID: 171345
Summary: URLSearchParams should be reflective
Product: WebKit
Version: Safari 10
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: adamduren at gmail.com
Overview:
URLSearchParams does not return the same value for input generated by URLSearchParams when a param includes the `+` character.
Steps to Reproduce:
```
var testParam = '+15555555555';
var params = new URLSearchParams()
params.set('query', testParam)
var newParams = new URLSearchParams(params.toString())
console.log(params.toString()) // query=%2B15555555555
console.log(params.get('query') === testParam) // Pass
console.log(newParams.get('query') === testParam) // Fail
```
Actual Results:
I would expect that getting the query param from the URLSearchParams instance that was created with the output of URLSearchParams would equal the original value.
In this case that newParams.get('query') is be ' 15555555555' instead of '+15555555555'
Expected Results:
I would expect that getting the query param from the URLSearchParams instance that was created with the output of URLSearchParams would equal the original value.
In this case that newParams.get('query') would be '+15555555555'
--
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/20170426/cbf66ec0/attachment.html>
More information about the webkit-unassigned
mailing list