From 4637f7003388e384abf7bea6f3947e7a2e877cd4 Mon Sep 17 00:00:00 2001
From: Djuffin <132926+Djuffin@users.noreply.github.com>
Date: Wed, 11 Mar 2026 09:38:35 +0000
Subject: [PATCH] Fix typos and clarify logic in specification text.
- Fix duplicate "in" in `avc_codec_registration.src.html`.
- Clarify that `[[Detached]]` check refers to the `|transferable|` object in construction loops.
- Standardize assignment phrasing in the "Create a VideoFrame" algorithm.
- Replace a smart quote with a standard apostrophe.
- Add missing periods to some algorithm steps for consistency.
---
avc_codec_registration.src.html | 2 +-
index.src.html | 22 +++++++++++-----------
2 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/avc_codec_registration.src.html b/avc_codec_registration.src.html
index b4729447..ecb09672 100644
--- a/avc_codec_registration.src.html
+++ b/avc_codec_registration.src.html
@@ -72,7 +72,7 @@
defined in [[iso14496-15]] section 5.3.2.
If the bitstream is in {{AvcBitstreamFormat/annexb}} format,
-{{EncodedVideoChunk/[[internal data]]}} is assumed to be in in Annex B format,
+{{EncodedVideoChunk/[[internal data]]}} is assumed to be in Annex B format,
as defined in [[ITU-T-REC-H.264]] Annex B.
NOTE: Since {{EncodedVideoChunk/[[internal data]]}} is inherently byte-aligned,
diff --git a/index.src.html b/index.src.html
index c371ad9e..c3ed52ac 100644
--- a/index.src.html
+++ b/index.src.html
@@ -2592,7 +2592,7 @@
1. If |init|.{{EncodedAudioChunkInit/transfer}} contains more than one reference
to the same {{ArrayBuffer}}, then throw a {{DataCloneError}} {{DOMException}}.
2. For each |transferable| in |init|.{{EncodedAudioChunkInit/transfer}}:
- 1. If {{platform object/[[Detached]]}} internal slot is `true`,
+ 1. If |transferable|'s {{platform object/[[Detached]]}} internal slot is `true`,
then throw a {{DataCloneError}} {{DOMException}}.
3. Let |chunk| be a new {{EncodedAudioChunk}} object, initialized as follows
1. Assign `init.type` to {{EncodedAudioChunk/[[type]]}}.
@@ -2698,7 +2698,7 @@
1. If |init|.{{EncodedVideoChunkInit/transfer}} contains more than one reference
to the same {{ArrayBuffer}}, then throw a {{DataCloneError}} {{DOMException}}.
2. For each |transferable| in |init|.{{EncodedVideoChunkInit/transfer}}:
- 1. If {{platform object/[[Detached]]}} internal slot is `true`,
+ 1. If |transferable|'s {{platform object/[[Detached]]}} internal slot is `true`,
then throw a {{DataCloneError}} {{DOMException}}.
3. Let |chunk| be a new {{EncodedVideoChunk}} object, initialized as follows
1. Assign `init.type` to {{EncodedVideoChunk/[[type]]}}.
@@ -2889,7 +2889,7 @@
2. If |init|.{{AudioDataInit/transfer}} contains more than one reference
to the same {{ArrayBuffer}}, then throw a {{DataCloneError}} {{DOMException}}.
3. For each |transferable| in |init|.{{AudioDataInit/transfer}}:
- 1. If {{platform object/[[Detached]]}} internal slot is `true`,
+ 1. If |transferable|'s {{platform object/[[Detached]]}} internal slot is `true`,
then throw a {{DataCloneError}} {{DOMException}}.
4. Let |frame| be a new {{AudioData}} object, initialized as follows:
1. Assign `false` to {{platform object/[[Detached]]}}.
@@ -3605,12 +3605,12 @@
Layout and Allocation Size=] algorithm with |parsedRect|,
|init|.{{VideoFrameBufferInit/format}}, and |optLayout|.
10. If |combinedLayout| is an exception, throw |combinedLayout|.
-11. If `data.byteLength` is less than |combinedLayout|’s
+11. If `data.byteLength` is less than |combinedLayout|'s
[=combined buffer layout/allocationSize=], throw a {{TypeError}}.
12. If |init|.{{VideoFrameBufferInit/transfer}} contains more than one reference
to the same {{ArrayBuffer}}, then throw a {{DataCloneError}} {{DOMException}}.
13. For each |transferable| in |init|.{{VideoFrameBufferInit/transfer}}:
- 1. If {{platform object/[[Detached]]}} internal slot is `true`,
+ 1. If |transferable|'s {{platform object/[[Detached]]}} internal slot is `true`,
then throw a {{DataCloneError}} {{DOMException}}.
14. If |init|.{{VideoFrameBufferInit/transfer}} contains an {{ArrayBuffer}}
referenced by |data| the User Agent MAY choose to:
@@ -3963,9 +3963,9 @@
and {{VideoFrame/[[visible height]]}} respectively.
10. Assign |duration| and |timestamp| to {{VideoFrame/[[duration]]}} and
{{VideoFrame/[[timestamp]]}} respectively.
- 11. Assign {{VideoFrame/[[color space]]}} with the result of running the
- [=VideoFrame/Pick Color Space=] algorithm, with |colorSpace| and
- {{VideoFrame/[[format]]}}.
+ 11. Assign the result of running the [=VideoFrame/Pick Color Space=]
+ algorithm, with |colorSpace| and {{VideoFrame/[[format]]}}, to
+ {{VideoFrame/[[color space]]}}.
12. Assign {{VideoFrame/rotation}} and {{VideoFrame/flip}} to |rotation|
and |flip| respectively.
2. Return |frame|.
@@ -4348,9 +4348,9 @@
: Convert PredefinedColorSpace to VideoColorSpace (with |colorSpace|)
:: 1. Assert: |colorSpace| is equal to one of {{srgb}} or {{display-p3}}.
2. If |colorSpace| is equal to {{srgb}} return a new instance of the
- [=sRGB Color Space=]
+ [=sRGB Color Space=].
3. If |colorSpace| is equal to {{display-p3}} return a new instance of the
- [=Display P3 Color Space=]
+ [=Display P3 Color Space=].
: Convert to RGB frame (with |frame|, |format| and |colorSpace|)
:: 1. This algorithm MUST be called only if |format|
@@ -5428,7 +5428,7 @@
2. If |init|.{{ImageDecoderInit/transfer}} contains more than one reference
to the same {{ArrayBuffer}}, then throw a {{DataCloneError}} {{DOMException}}.
3. For each |transferable| in |init|.{{ImageDecoderInit/transfer}}:
- 1. If {{platform object/[[Detached]]}} internal slot is `true`,
+ 1. If |transferable|'s {{platform object/[[Detached]]}} internal slot is `true`,
then throw a {{DataCloneError}} {{DOMException}}.
4. Let |d| be a new {{ImageDecoder}} object. In the steps below, all
mentions of {{ImageDecoder}} members apply to |d| unless stated