[html5] r2814 - [giow] (2) provide a .value API for <input type=file>

whatwg at whatwg.org whatwg at whatwg.org
Thu Feb 12 23:32:34 PST 2009


Author: ianh
Date: 2009-02-12 23:32:34 -0800 (Thu, 12 Feb 2009)
New Revision: 2814

Modified:
   index
   source
Log:
[giow] (2) provide a .value API for <input type=file>

Modified: index
===================================================================
--- index	2009-02-13 03:23:51 UTC (rev 2813)
+++ index	2009-02-13 07:32:34 UTC (rev 2814)
@@ -27241,7 +27241,7 @@
      <td class=yes> <a href=#dom-input-value-value title=dom-input-value-value>value</a> <!-- Color -->
      <td class=yes> <a href=#dom-input-value-default-on title=dom-input-value-default-on>default/on</a> <!-- Checkbox -->
 <!-- <td class="yes"> <span title="dom-input-value-default-on">default/on</span>      Radio Button -->
-     <td class=no> · <!-- File Upload -->
+     <td class=yes> <a href=#dom-input-value-filename title=dom-input-value-filename>filename</a> <!-- File Upload -->
      <td class=yes> <a href=#dom-input-value-default title=dom-input-value-default>default</a> <!-- Submit Button -->
      <td class=yes> <a href=#dom-input-value-default title=dom-input-value-default>default</a> <!-- Image Button -->
      <td class=yes> <a href=#dom-input-value-default title=dom-input-value-default>default</a> <!-- Reset Button -->
@@ -29336,6 +29336,9 @@
    <code title=attr-input-multiple><a href=#attr-input-multiple>multiple</a></code>, and
    <code title=attr-input-required><a href=#attr-input-required>required</a></code>.</p>
 
+   <p>The <code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attribute is
+   in mode <a href=#dom-input-value-filename title=dom-input-value-filename>filenmae</a>.</p>
+
    <p>The <code title=event-input-change><a href=#event-input-change>change</a></code> event applies.</p>
 
    <p>The following content attributes must not be specified and do not
@@ -29368,7 +29371,6 @@
    <code class=no-backref title=dom-input-checked><a href=#dom-input-checked>checked</a></code>,
    <code class=no-backref title=dom-input-list><a href=#dom-input-list>list</a></code>,
    <code class=no-backref title=dom-input-selectedOption><a href=#dom-input-selectedoption>selectedOption</a></code>,
-   <code class=no-backref title=dom-input-value><a href=#dom-input-value>value</a></code>,
    <code class=no-backref title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code> and
    <code class=no-backref title=dom-input-valueAsNumber><a href=#dom-input-valueasnumber>valueAsNumber</a></code> DOM attributes;
    <code class=no-backref title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code> and
@@ -30200,8 +30202,8 @@
 
   <p>The <dfn id=dom-input-value title=dom-input-value><code>value</code></dfn> DOM
   attribute allows scripts to manipulate the <a href=#concept-fe-value title=concept-fe-value>value</a> of an <code><a href=#the-input-element>input</a></code>
-  element. If the attribute applies, then it is in one of the
-  following modes, which define its behavior:</p>
+  element. The attribute is in one of the following modes, which
+  define its behavior:</p>
 
   <dl>
 
@@ -30227,11 +30229,15 @@
    that attribute's value; otherwise, it must return the string "<code title="">on</code>". On setting, it must set the element's <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute to the new
    value.</dd>
 
+   <dt><dfn id=dom-input-value-filename title=dom-input-value-filename>filename</dfn>
+
+   <dd>On getting, it must return the string "<code title="">c:\fakepath\</code>" followed by the filename of the first
+   file in the list of <a href=#concept-input-type-file-selected title=concept-input-type-file-selected>selected files</a>, if
+   any, or the empty string if the list is empty. On setting, it must
+   throw an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception.</dd>
+
   </dl>
 
-  <p>If the attribute does not apply, then on getting and setting it
-  must throw an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception.</p>
-
   <hr>
 
   <p>The <dfn id=dom-input-checked title=dom-input-checked><code>checked</code></dfn> DOM

Modified: source
===================================================================
--- source	2009-02-13 03:23:51 UTC (rev 2813)
+++ source	2009-02-13 07:32:34 UTC (rev 2814)
@@ -28304,7 +28304,7 @@
      <td class="yes"> <span title="dom-input-value-value">value</span> <!-- Color -->
      <td class="yes"> <span title="dom-input-value-default-on">default/on</span> <!-- Checkbox -->
 <!-- <td class="yes"> <span title="dom-input-value-default-on">default/on</span>      Radio Button -->
-     <td class="no"> · <!-- File Upload -->
+     <td class="yes"> <span title="dom-input-value-filename">filename</span> <!-- File Upload -->
      <td class="yes"> <span title="dom-input-value-default">default</span> <!-- Submit Button -->
      <td class="yes"> <span title="dom-input-value-default">default</span> <!-- Image Button -->
      <td class="yes"> <span title="dom-input-value-default">default</span> <!-- Reset Button -->
@@ -30679,6 +30679,9 @@
    <code title="attr-input-multiple">multiple</code>, and
    <code title="attr-input-required">required</code>.</p>
 
+   <p>The <code title="dom-input-value">value</code> DOM attribute is
+   in mode <span title="dom-input-value-filename">filenmae</span>.</p>
+
    <p>The <code title="event-input-change">change</code> event applies.</p>
 
    <p>The following content attributes must not be specified and do not
@@ -30711,7 +30714,6 @@
    <code class="no-backref" title="dom-input-checked">checked</code>,
    <code class="no-backref" title="dom-input-list">list</code>,
    <code class="no-backref" title="dom-input-selectedOption">selectedOption</code>,
-   <code class="no-backref" title="dom-input-value">value</code>,
    <code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code> and
    <code class="no-backref" title="dom-input-valueAsNumber">valueAsNumber</code> DOM attributes;
    <code class="no-backref" title="dom-input-stepDown">stepDown()</code> and
@@ -31680,8 +31682,8 @@
   <p>The <dfn title="dom-input-value"><code>value</code></dfn> DOM
   attribute allows scripts to manipulate the <span
   title="concept-fe-value">value</span> of an <code>input</code>
-  element. If the attribute applies, then it is in one of the
-  following modes, which define its behavior:</p>
+  element. The attribute is in one of the following modes, which
+  define its behavior:</p>
 
   <dl>
 
@@ -31715,11 +31717,17 @@
    title="attr-input-value">value</code> attribute to the new
    value.</dd>
 
+   <dt><dfn title="dom-input-value-filename">filename</dfn>
+
+   <dd>On getting, it must return the string "<code
+   title="">c:\fakepath\</code>" followed by the filename of the first
+   file in the list of <span
+   title="concept-input-type-file-selected">selected files</span>, if
+   any, or the empty string if the list is empty. On setting, it must
+   throw an <code>INVALID_ACCESS_ERR</code> exception.</dd>
+
   </dl>
 
-  <p>If the attribute does not apply, then on getting and setting it
-  must throw an <code>INVALID_ACCESS_ERR</code> exception.</p>
-
   <hr>
 
   <p>The <dfn title="dom-input-checked"><code>checked</code></dfn> DOM




More information about the Commit-Watchers mailing list