[whatwg/fetch] Parsing `application/x-www-form-urlencoded` byte sequence is infallible (Issue #1798)

### 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

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/1798
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/issues/1798@github.com>

Received on Monday, 16 December 2024 19:30:41 UTC