[whatwg/encoding] Questionable conversion in BOM Sniff (#243)

In section 6.1 under the topic **BOM sniff** I read

> 1. Let BOM be the result of peeking 3 bytes from ioQueue, converted to a byte sequence.

The conversion makes no sense here.  The result of a **peek** is a **list** without **end-of-queue**.  In particular, it is not an **I/O queue** for that reason.  Now **conversions** are only declared if an **I/O queue** is involved, either as a source a destination.  This is for one formally not the case here, since the source is a **list** of bytes and the destination a sequence of bytes. And second a **list** of bytes is already a sequence of bytes, so semantically no conversion is needed at all.

Wolf Lammen

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

Received on Sunday, 25 October 2020 19:18:26 UTC