@@ -8878,98 +8878,6 @@ o.myself = o;</pre>
8878
8878
usually it is simpler to perform the serialization ahead of time, as a synchronous consequence of
8879
8879
author code.</p>
8880
8880
8881
- <h4>Monkey patch for <code>Blob</code> and <code>FileList</code> objects</h4>
8882
-
8883
- <p class="XXX">This monkey patch will be moved in due course. See <a
8884
- href="https://github.com/w3c/FileAPI/issues/32">w3c/FileAPI issue 32</a>.</p>
8885
-
8886
- <p><code>Blob</code> objects are <span>serializable objects</span>. The <code>Blob</code>
8887
- interface must be annotated with the <code data-x="Serializable">[Serializable]</code>
8888
- <span>extended attribute</span>. Their <span>serialization steps</span>, given <var>value</var>
8889
- and <var>serialized</var>, are:</p>
8890
-
8891
- <ol>
8892
- <li><p>Set <var>serialized</var>.[[SnapshotState]] to <var>value</var>'s <span>snapshot
8893
- state</span>.</p></li>
8894
-
8895
- <li><p>Set <var>serialized</var>.[[ByteSequence]] to <var>value</var>'s underlying byte
8896
- sequence.</p></li>
8897
- </ol>
8898
-
8899
- <p>Their <span>deserialization steps</span>, given <var>serialized</var> and <var>value</var>,
8900
- are:</p>
8901
-
8902
- <ol>
8903
- <li><p>Set <var>value</var>'s <span>snapshot state</span> to
8904
- <var>serialized</var>.[[SnapshotState]].</p></li>
8905
-
8906
- <li><p>Set <var>value</var>'s underlying byte sequence to
8907
- <var>serialized</var>.[[ByteSequence]].</p></li>
8908
- </ol>
8909
-
8910
- <hr>
8911
-
8912
- <p><code>File</code> objects are <span>serializable objects</span>. The <code>File</code>
8913
- interface must be annotated with the <code data-x="Serializable">[Serializable]</code>
8914
- <span>extended attribute</span>. Their <span>serialization steps</span>, given <var>value</var>
8915
- and <var>serialized</var>, are:</p>
8916
-
8917
- <ol>
8918
- <li><p>Set <var>serialized</var>.[[SnapshotState]] to <var>value</var>'s <span>snapshot
8919
- state</span>.</p></li>
8920
-
8921
- <li><p>Set <var>serialized</var>.[[ByteSequence]] to <var>value</var>'s underlying byte
8922
- sequence.</p></li>
8923
-
8924
- <li><p>Set <var>serialized</var>.[[Name]] to the value of <var>value</var>'s <code
8925
- data-x="dom-File-name">name</code> attribute.</p></li>
8926
-
8927
- <li><p>Set <var>serialized</var>.[[LastModified]] to the value of <var>value</var>'s <code
8928
- data-x="dom-File-lastModified">lastModified</code> attribute.</p></li>
8929
- </ol>
8930
-
8931
- <p>Their <span>deserialization steps</span>, given <var>serialized</var> and <var>value</var>,
8932
- are:</p>
8933
-
8934
- <ol>
8935
- <li><p>Set <var>value</var>'s <span>snapshot state</span> to
8936
- <var>serialized</var>.[[SnapshotState]].</p></li>
8937
-
8938
- <li><p>Set <var>value</var>'s underlying byte sequence to
8939
- <var>serialized</var>.[[ByteSequence]].</p></li>
8940
-
8941
- <li><p>Initialize the value of <var>value</var>'s <code data-x="dom-File-name">name</code>
8942
- attribute to <var>serialized</var>.[[Name]].</p></li>
8943
-
8944
- <li><p>Initialize the value of <var>value</var>'s <code
8945
- data-x="dom-File-lastModified">lastModified</code> attribute to
8946
- <var>serialized</var>.[[LastModified]].</p></li>
8947
- </ol>
8948
-
8949
- <hr>
8950
-
8951
- <p><code>FileList</code> objects are <span>serializable objects</span>. The <code>FileList</code>
8952
- interface must be annotated with the <code data-x="Serializable">[Serializable]</code>
8953
- <span>extended attribute</span>. Their <span>serialization steps</span>, given <var>value</var>
8954
- and <var>serialized</var>, are:</p>
8955
-
8956
- <ol>
8957
- <li><p>Set <var>serialized</var>.[[Files]] to an empty <span>list</span>.</p></li>
8958
-
8959
- <li><p>For each <var>file</var> in <var>value</var>, <span data-x="list append">append</span>
8960
- the <span>sub-serialization</span> of <var>file</var> to
8961
- <var>serialized</var>.[[Files]].</p></li>
8962
- </ol>
8963
-
8964
- <p>Their <span>deserialization steps</span>, given <var>serialized</var> and <var>value</var>,
8965
- are:</p>
8966
-
8967
- <ol>
8968
- <li><p><span data-x="list iterate">For each</span> <var>file</var> of
8969
- <var>serialized</var>.[[Files]], add the <span>sub-deserialization</span> of <var>file</var> to
8970
- <var>value</var>.</p></li>
8971
- </ol>
8972
-
8973
8881
</div>
8974
8882
8975
8883
0 commit comments