2009/dap/file-system file-writer.html,1.35,1.36

Update of /sources/public/2009/dap/file-system
In directory hutz:/tmp/cvs-serv11269

Modified Files:
	file-writer.html 
Log Message:
Fix up write and truncate completion algorithms.


Index: file-writer.html
===================================================================
RCS file: /sources/public/2009/dap/file-system/file-writer.html,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- file-writer.html	5 Mar 2012 22:52:18 -0000	1.35
+++ file-writer.html	6 Mar 2012 01:40:35 -0000	1.36
@@ -616,23 +616,29 @@
               the other steps in this algorithm.</li>
               <li>Make progress notifications.  On getting, while processing the
                 <code>write</code> method, the <code>length</code> and
-                <code>position</code> attributes SHOULD indicate the progress
+                <code>position</code> attributes MUST indicate the progress
                 made in writing the file as of the last progress notification.
               </li>
-              <li>Upon successful completion of a write:
-                <ol>
+              <li>
+                Upon successful completion of a write:
+                <ul>
                   <li><code>position</code> MUST indicate an increase of
-                  <code>data.size</code> over its pre-write state, and
-                  <code>length</code> must be the greater of (the pre-write
+                  <code>data.size</code> over its pre-write state.</li>
+                  <li><code>length</code> MUST be the greater of (the pre-write
                   <code>length</code>) and (the pre-write <code>position</code>
-                  plus <code>data.size</code>).  </li>
-                  <li>Set readyState to <code>DONE</code>.</li>
-                  <li>Dispatch a progress event called
-                      <code>write</code></li>
-                  <li>Dispatch a progress event called
-                      <code>writeend</code></li>
-                  <li>Terminate this overall set of steps.</li>
-                </ol>
+                  plus <code>data.size</code>).</li>
+                  <li>Queue a task to:
+                    <ol>
+                      <li>Set readyState to <code>DONE</code>.</li>
+                      <li>Dispatch a progress event called
+                          <code>write</code>.</li>
+                      <li>Dispatch a progress event called
+                          <code>writeend</code>.</li>
+                      <li>Terminate this overall set of steps.</li>
+                    </ol>
+                  </li>
+                </ul>
+              </li>
             </ol>
           </p>
           <dl class='parameters'>
@@ -723,11 +729,15 @@
                     <li><code>size</code>.</li>
                   </ul>
                 </li>
-                <li>Set readyState to <code>DONE</code>.</li>
-                <li>Dispatch a progress event called <code>write</code></li>
-                <li>Dispatch a progress event called
-                    <code>writeend</code></li>
-                <li>Terminate this overall set of steps.</li>
+                <li>Queue a task to:
+                  <ol>
+                    <li>Set readyState to <code>DONE</code>.</li>
+                    <li>Dispatch a progress event called <code>write</code></li>
+                    <li>Dispatch a progress event called
+                        <code>writeend</code></li>
+                    <li>Terminate this overall set of steps.</li>
+                  </ol>
+                </li>
               </ul>
             </li>
           </ol>

Received on Tuesday, 6 March 2012 01:40:39 UTC