From eb86fc20725ad7e5bb3c1a25bee9d47fad344577 Mon Sep 17 00:00:00 2001
From: Chun-Min Chang
Date: Wed, 9 Oct 2019 16:36:12 -0700
Subject: [PATCH 1/5] Update type of MediaMetadata's artwork
Since the entries in the MediaMetadata's `artwork` are frozen in the
current spec [1], the type of the attribute `artwork` must be
`FrozenArray
When the convert artwork algorithm with input parameter is
-invoked, the user agent MUST run the following steps:
+invoked, where the input is a list of type {{MediaImage}},
+the user agent MUST run the following steps:
Let output be an empty list of type {{MediaImage}}.
@@ -1230,7 +1233,7 @@ invoked, the user agent MUST run the following steps:
images. On getting, it MUST return the result of the following steps:
- Let frozenArtwork be an empty list of type {{MediaImage}}.
+ Let frozenArtwork be an empty list of type object.
- Convert the frozenArtwork from a list of type object
- into a list of type {{MediaImage}}.
+ Let convertedArtwork be the result of converting
+ the new value input into a sequence of type {{MediaImage}}.
Set chapterInfo's artwork
- images to the result of [=Create a frozen array|creating a frozen
+ images be the result of [=Create a frozen array|creating a frozen
array=] from {{ChapterInformationInit/artwork}}.
- A {{MediaMetadata}} has an associated sequence of artwork
- images, which is a sequence of type {{MediaImage}}.
- A {{MediaMetadata}} also has has an associated
+ A {{MediaMetadata}} has an associated sequence of artwork images, which is a sequence of type
+ {{MediaImage}}. A {{MediaMetadata}} also has has an associated
converted artwork images which is initially undefined.
@@ -1167,8 +1168,8 @@ dictionary MediaMetadataInit {
When the convert artwork algorithm with input parameter is
-invoked, where the input is a sequence of type {{MediaImage}},
-the user agent MUST run the following steps:
+invoked, where the input is a sequence of type {{MediaImage}}, the
+user agent MUST run the following steps:
Let output be an empty list of type {{MediaImage}}.
@@ -1234,8 +1235,8 @@ the user agent MUST run the following steps:
images. On getting, it MUST run the following steps:
- If the {{MediaMetadata}}'s converted artwork images is undefined,
- run the following steps:
+ If the {{MediaMetadata}}'s converted artwork images is
+ undefined, run the following steps:
Let frozenArtwork be a Javascript Array value.
@@ -1245,10 +1246,12 @@ the user agent MUST run the following steps:
for="MediaMetadata">artwork images, perform the following steps:
- Convert entry into a Javascript object named image.
+ Convert entry into a Javascript object named
+ image.
@@ -1271,8 +1277,8 @@ the user agent MUST run the following steps:
On setting, it MUST run the following steps:
- Let convertedArtwork be the result of converting
- the new value input into a sequence of type {{MediaImage}}.
+ Let convertedArtwork be the result of converting the new value
+ input into a sequence of type {{MediaImage}}.
Run convert artwork algorithm with the converted sequence as
@@ -1280,7 +1286,8 @@ the user agent MUST run the following steps:
artwork images as the result if it succeeds.
Set chapterInfo's artwork
- images be the result of [=Create a frozen array|creating a frozen
+ images to the result of [=Create a frozen array|creating a frozen
array=] from {{ChapterInformationInit/artwork}}.
From 6f5ac6373d5680753fbd24749e2cec01fab9d969 Mon Sep 17 00:00:00 2001
From: youenn
Date: Sun, 29 Sep 2024 12:07:54 -0700
Subject: [PATCH 5/5] Add convert links
---
index.bs | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/index.bs b/index.bs
index 6755a87..0b9abdc 100644
--- a/index.bs
+++ b/index.bs
@@ -1235,19 +1235,19 @@ user agent MUST run the following steps:
images. On getting, it MUST run the following steps:
- If the {{MediaMetadata}}'s converted artwork images is
+ If the {{MediaMetadata}}'s converted artwork images is
undefined, run the following steps:
- Let frozenArtwork be a Javascript Array value.
+ Let frozenArtwork be a JavaScript Array value.
For each entry in the {{MediaMetadata}}'s artwork images, perform the following steps:
- Convert entry into a Javascript object named
- image.
+ Let image be the result of [=converted to a JavaScript
+ value|converting to a JavaScript object=] entry.
- On setting, it MUST run the following steps:
+ On setting, it MUST run the following steps with value being the
+ new value being set:
- Let convertedArtwork be the result of converting the new value
- input into a sequence of type {{MediaImage}}.
+ Let convertedArtwork be the result of [=converted to an IDL
+ value|converting=] value to a sequence of type {{MediaImage}}.