diff --git a/index.bs b/index.bs index c61e491..395f344 100644 --- a/index.bs +++ b/index.bs @@ -50,6 +50,7 @@ table td, table th {
spec:html; type:element; text:link +spec:webidl; type:interface; text:object
@@ -1230,54 +1231,66 @@ the user agent MUST run the following steps:The artwork attribute reflects the {{MediaMetadata}}'s artwork - images. On getting, it MUST return the result of the following steps: + images. On getting, it MUST run the following steps:
On setting, it MUST run the following steps:
- - Let frozenArtwork be an empty list of type object. -
-- - For each entry in the {{MediaMetadata}}'s artwork images, perform the following steps: + If the {{MediaMetadata}}'s converted artwork images is
undefined
, + run the following steps:
- - Let image be a new {{MediaImage}}. -
-- - Set image's {{MediaImage/src}} to entry's - {{MediaImage/src}}. -
-- - Set image's {{MediaImage/sizes}} to entry's - {{MediaImage/sizes}}. -
-- - Set image's {{MediaImage/type}} to entry's - {{MediaImage/type}}. -
-- - Convert image into an object - whose type is object. + Let frozenArtwork be an empty list of type object.
-- - Call {{Object/freeze(O)}} on image, to prevent accidental - mutation by scripts. + For each entry in the {{MediaMetadata}}'s artwork images, perform the following steps: +
+
- + Let image be a new {{MediaImage}}. +
+- + Set image's {{MediaImage/src}} to entry's + {{MediaImage/src}}. +
+- + Set image's {{MediaImage/sizes}} to entry's + {{MediaImage/sizes}}. +
+- + Set image's {{MediaImage/type}} to entry's + {{MediaImage/type}}. +
+- + Convert image into an object + whose type is object. +
+ +- + Call {{Object/freeze(O)}} on image, to prevent accidental + mutation by scripts. +
+- + Append the object to frozenArtwork. +
+- - Append the object to frozenArtwork. + Set the {{MediaMetadata}}'s converted artwork images to frozenArtwork.
- - Create a frozen array from frozenArtwork. + Return the {{MediaMetadata}}'s converted artwork images.
+
- + Set the {{MediaMetadata}}'s converted artwork images to
undefined
. +- Convert the frozenArtwork from a list of type object into a list of type {{MediaImage}}.