Re: [whatwg/fetch] Behavior of `Headers.set(name, null)` and `Headers.get(name)` (Issue #1792)

> Either set() would have to treat null and the empty string the same

Or simply perform `.delete` if `value` is `null`.

> Neither of which would be very consistent with web platform APIs.

Indeed, I just verified for `getAttribute` and `setAttribute`.
It seems lot of web API have design issues.

But well, consistency is preferable, so I'll close this issue (well it is already close).

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

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

Received on Sunday, 8 December 2024 07:37:31 UTC