- From: Eric Uhrhane via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 10 Mar 2010 02:50:05 +0000
- To: public-dap-commits@w3.org
Update of /sources/public/2009/dap/file-system In directory hutz:/tmp/cvs-serv8384 Modified Files: file-writer.html Log Message: Fixing a few typos. Index: file-writer.html =================================================================== RCS file: /sources/public/2009/dap/file-system/file-writer.html,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- file-writer.html 10 Mar 2010 02:39:20 -0000 1.3 +++ file-writer.html 10 Mar 2010 02:50:03 -0000 1.4 @@ -98,6 +98,13 @@ writer.write(bb.getBlob()); } </pre> + <p> + Here's an example of obtaining a <a>FileWriter</a> from a HTML input + element: + <pre class='example sh_javascript'> + var fileWriter = document.forms['downloadData']['fileChooser'].fileWriter; + </pre> + </p> </section> </section> @@ -404,9 +411,9 @@ </dd> </dl> <dl class='exception' title='FileException'> - <font color=red>TODO: Specify error codes here; refer to - DOMException, File API, and anywhere else we'll be trying to - match.</font> + <dt>INVALID_STATE_ERR</dt> + <dd>A user called <code>write</code> while <code>readyState</code> + was <code>WRITING</code>. </dl> </dd> <dt>void truncate ()</dt> @@ -456,15 +463,16 @@ <dl class='parameters'> <dt>long long size</dt> <dd> - The size to which the file is truncated, measured in bytes. If - <code>size</code> is greater than or equal to <code>length</code>, - this has no effect. + The size to which the file is to be truncated, measured in bytes. + If <code>size</code> is greater than or equal to + <code>length</code>, this has no effect. </dd> </dl> <dl class='exception' title='FileException'> <dt>INVALID_STATE_ERR</dt> <dd>A user called <code>truncate</code> while - <code>readyState</code> was <code>WRITING</code>. + <code>readyState</code> was <code>WRITING</code>. + </dd> </dl> </dd> </dl> @@ -519,6 +527,8 @@ </dd> </dl> <dl class='exception' title='FileException'> + <dt>TODO</dt> + <dd>TODO</dd> </dl> </dd> <dt>void seek ()</dt> @@ -538,6 +548,8 @@ </dd> </dl> <dl class='exception' title='FileException'> + <dt>TODO</dt> + <dd>TODO</dd> </dl> </dd> <dt>void truncate ()</dt> @@ -554,6 +566,8 @@ </dd> </dl> <dl class='exception' title='FileException'> + <dt>TODO</dt> + <dd>TODO</dd> </dl> </dd> </dl> @@ -696,8 +710,8 @@ <tr> <td>INVALID_STATE_ERR</td><td>11</td> <td>User agents MUST use this code if an application attempts to - initiate a write using a <a>FileWriter</a> which is already in - the <a>WRITING</a> state. + initiate a write, truncate, or seek using a <a>FileWriter</a> + which is already in the <a>WRITING</a> state. </td> </tr> <tr> @@ -746,13 +760,13 @@ corresponding to the <code>File SaveAs</code> state. This functions similarly to the <code>File Upload</code> state, except that instead of presenting a File-Open picker and returning a - list of <a>File</a> objects, it presents a File-Save-As picker and + list of <code>File</code> objects, it presents a File-Save-As picker and returns a single <a>FileWriter</a>. Here is a description of an input element in the File SaveAs state. </p> <p> The input element represents write access to a selected file, embodied - as a FileWriter. + as a <a>FileWriter</a>. </p> <p> If the element is mutable, the user agent should allow the user to @@ -816,13 +830,6 @@ it up to snuff as an actual specification.</div> <div class='issue'>TODO: Explore integration with drag-out.</div> </section> - <section class='informative'> - Here's an example of obtaining a <a>FileWriter</a> from a HTML input - element: - <div class='example sh_javascript'> - var fileWriter = document.forms['downloadData']['fileChooser'].fileWriter; - </div> - </section> </section> <section class='informative'> <h2>Security Considerations</h2>
Received on Wednesday, 10 March 2010 02:50:10 UTC