html5/spec Overview.html,1.1984,1.1985

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv22722

Modified Files:
	Overview.html 
Log Message:
provide a .value API for <input type=file> (whatwg r2814)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1984
retrieving revision 1.1985
diff -u -d -r1.1984 -r1.1985
--- Overview.html	13 Feb 2009 03:23:56 -0000	1.1984
+++ Overview.html	13 Feb 2009 07:32:39 -0000	1.1985
@@ -27236,7 +27236,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 -->
@@ -29331,6 +29331,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
@@ -29363,7 +29366,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
@@ -30195,8 +30197,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>
 
@@ -30222,10 +30224,14 @@
    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>
 
-  </dl>
+   <dt><dfn id=dom-input-value-filename title=dom-input-value-filename>filename</dfn>
 
-  <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>
+   <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>
 
   <hr>
 

Received on Friday, 13 February 2009 07:32:51 UTC