Closed Bug 1268361 Opened 4 years ago Closed 4 years ago

Strip leading '?' in `new URLSearchParams(query)`

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla49
Tracking Status
firefox49 --- fixed

People

(Reporter: 446240525, Assigned: baku)

References

Details

(Keywords: dev-doc-complete, Whiteboard: [DocArea=DOM])

Attachments

(1 file)

> new URLSearchParams("?a=1").get("a")
null // should be "1"

see https://github.com/whatwg/url/issues/81, already in Chrome 52
Keywords: dev-doc-needed
Whiteboard: [DocArea=DOM]
Assignee: nobody → amarchesini
Attachment #8746454 - Flags: review?(bugs)
Comment on attachment 8746454 [details] [diff] [review]
urlSearchParams.patch

Please test also passing just '?', and '?=1' and something like that.
Attachment #8746454 - Flags: review?(bugs) → review+
https://hg.mozilla.org/mozilla-central/rev/036a3dabb720
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
Duplicate of this bug: 1300334
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.