From c6749236ecdfbdd22ad4f5bbea0abfb54d127ea8 Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Mon, 24 Nov 2025 20:20:36 +0100 Subject: [PATCH 1/3] Add brotli in index.bs --- index.bs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/index.bs b/index.bs index b7c983d..74c3fc0 100644 --- a/index.bs +++ b/index.bs @@ -64,10 +64,17 @@ A compression context is the internal state maintained by a compressi * A `gzip` stream may only contain one "member". * It is an error if there is additional input data after the end of the "member". +: {{CompressionFormat/brotli}} +:: "Brotli Compressed Data Format" [[!RFC7932]] + + * Implementation must be "compliant" as described in [[!RFC7932]] section 1.4. + * Non-[[!RFC1951]]-conforming blocks must not be created by CompressionStream, and are errors for DecompressionStream. + # Interface `CompressionStream` # {#compression-stream}
 enum CompressionFormat {
+  "brotli",
   "deflate",
   "deflate-raw",
   "gzip",

From 952cd724a5b8b560b37d1ea2843deb745dc560c3 Mon Sep 17 00:00:00 2001
From: Kagami Sascha Rosylight 
Date: Tue, 25 Nov 2025 09:20:01 +0100
Subject: [PATCH 2/3] Rfc7932

---
 index.bs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/index.bs b/index.bs
index 74c3fc0..f8be5ab 100644
--- a/index.bs
+++ b/index.bs
@@ -68,7 +68,7 @@ A compression context is the internal state maintained by a compressi
 :: "Brotli Compressed Data Format" [[!RFC7932]]
 
    * Implementation must be "compliant" as described in [[!RFC7932]] section 1.4.
-   * Non-[[!RFC1951]]-conforming blocks must not be created by CompressionStream, and are errors for DecompressionStream.
+   * Non-[[!RFC7932]]-conforming blocks must not be created by CompressionStream, and are errors for DecompressionStream.
 
 # Interface `CompressionStream` #  {#compression-stream}
 

From 5b643acfb3236d47a3f961d867f81669b854c3c8 Mon Sep 17 00:00:00 2001
From: Kagami Sascha Rosylight 
Date: Tue, 25 Nov 2025 09:23:34 +0100
Subject: [PATCH 3/3] Brackets for IDL names

---
 index.bs | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/index.bs b/index.bs
index f8be5ab..66647f5 100644
--- a/index.bs
+++ b/index.bs
@@ -36,30 +36,30 @@ A compression context is the internal state maintained by a compressi
    Note: This format is referred to as "deflate" for consistency with HTTP Content-Encodings. See [[RFC7230 obsolete]] section 4.2.2.
 
    * Implementations must be "compliant" as described in [[!RFC1950]] section 2.3.
-   * Field values described as invalid in [[!RFC1950]] must not be created by CompressionStream, and are errors for DecompressionStream.
+   * Field values described as invalid in [[!RFC1950]] must not be created by {{CompressionStream}}, and are errors for {{DecompressionStream}}.
    * The only valid value of the `CM` (Compression method) part of the `CMF` field is 8.
    * The `FDICT` flag is not supported by these APIs, and will error the stream if set.
-   * The `FLEVEL` flag is ignored by DecompressionStream.
-   * It is an error for DecompressionStream if the `ADLER32` checksum is not correct.
+   * The `FLEVEL` flag is ignored by {{DecompressionStream}}.
+   * It is an error for {{DecompressionStream}} if the `ADLER32` checksum is not correct.
    * It is an error if there is additional input data after the `ADLER32` checksum.
 
 : {{CompressionFormat/deflate-raw}}
 :: "The DEFLATE algorithm" [[!RFC1951]]
 
    * Implementations must be "compliant" as described in [[!RFC1951]] section 1.4.
-   * Non-[[!RFC1951]]-conforming blocks must not be created by CompressionStream, and are errors for DecompressionStream.
+   * Non-[[!RFC1951]]-conforming blocks must not be created by {{CompressionStream}}, and are errors for {{DecompressionStream}}.
    * It is an error if there is additional input data after the final block indicated by the `BFINAL` flag.
 
 : {{CompressionFormat/gzip}}
 :: "GZIP file format" [[!RFC1952]]
 
    * Implementations must be "compliant" as described in [[!RFC1952]] section 2.3.1.2.
-   * Field values described as invalid in [[!RFC1952]] must not be created by CompressionStream, and are errors for DecompressionStream.
+   * Field values described as invalid in [[!RFC1952]] must not be created by {{CompressionStream}}, and are errors for {{DecompressionStream}}.
    * The only valid value of the `CM` (Compression Method) field is 8.
-   * The `FTEXT` flag must be ignored by DecompressionStream.
+   * The `FTEXT` flag must be ignored by {{DecompressionStream}}.
    * If the `FHCRC` field is present, it is an error for it to be incorrect.
-   * The contents of any `FEXTRA`, `FNAME` and `FCOMMENT` fields must be ignored by DecompressionStream, except to verify that they are terminated correctly.
-   * The contents of the `MTIME`, `XFL` and `OS` fields must be ignored by DecompressionStream.
+   * The contents of any `FEXTRA`, `FNAME` and `FCOMMENT` fields must be ignored by {{DecompressionStream}}, except to verify that they are terminated correctly.
+   * The contents of the `MTIME`, `XFL` and `OS` fields must be ignored by {{DecompressionStream}}.
    * It is an error if `CRC32` or `ISIZE` do not match the decompressed data.
    * A `gzip` stream may only contain one "member".
    * It is an error if there is additional input data after the end of the "member".
@@ -68,7 +68,7 @@ A compression context is the internal state maintained by a compressi
 :: "Brotli Compressed Data Format" [[!RFC7932]]
 
    * Implementation must be "compliant" as described in [[!RFC7932]] section 1.4.
-   * Non-[[!RFC7932]]-conforming blocks must not be created by CompressionStream, and are errors for DecompressionStream.
+   * Non-[[!RFC7932]]-conforming blocks must not be created by {{CompressionStream}}, and are errors for {{DecompressionStream}}.
 
 # Interface `CompressionStream` #  {#compression-stream}