Skip to content

Parsing application/x-www-form-urlencoded byte sequence is infallible #1798

@F3n67u

Description

@F3n67u

What is the issue with the Fetch Standard?

https://fetch.spec.whatwg.org/#dom-body-formdata

In "The formData() method steps":

"application/x-www-form-urlencoded"

  1. Let entries be the result of parsing bytes.
  2. If entries is failure, then throw a TypeError.
  3. Return a new FormData object whose entry list is entries.

Step 2 seems not necessary because parsing application/x-www-form-urlencoded byte sequence is infallible: https://url.spec.whatwg.org/#concept-urlencoded-parser

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions