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 {
@@ -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:

  1. - Let frozenArtwork be an empty list of type object. -
  2. -
  3. - 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:
    1. - Let image be a new {{MediaImage}}. -
    2. -
    3. - Set image's {{MediaImage/src}} to entry's - {{MediaImage/src}}. -
    4. -
    5. - Set image's {{MediaImage/sizes}} to entry's - {{MediaImage/sizes}}. -
    6. -
    7. - Set image's {{MediaImage/type}} to entry's - {{MediaImage/type}}. -
    8. -
    9. - Convert image into an object - whose type is object. + Let frozenArtwork be an empty list of type object.
    10. -
    11. - 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: +
        +
      1. + Let image be a new {{MediaImage}}. +
      2. +
      3. + Set image's {{MediaImage/src}} to entry's + {{MediaImage/src}}. +
      4. +
      5. + Set image's {{MediaImage/sizes}} to entry's + {{MediaImage/sizes}}. +
      6. +
      7. + Set image's {{MediaImage/type}} to entry's + {{MediaImage/type}}. +
      8. +
      9. + Convert image into an object + whose type is object. +
      10. + +
      11. + Call {{Object/freeze(O)}} on image, to prevent accidental + mutation by scripts. +
      12. +
      13. + Append the object to frozenArtwork. +
      14. +
    12. - Append the object to frozenArtwork. + Set the {{MediaMetadata}}'s converted artwork images to frozenArtwork.
  4. - Create a frozen array from frozenArtwork. + Return the {{MediaMetadata}}'s converted artwork images.
On setting, it MUST run the following steps:
    +
  1. + Set the {{MediaMetadata}}'s converted artwork images to undefined. +
  2. Convert the frozenArtwork from a list of type object into a list of type {{MediaImage}}.