[html5] r6083 - [e] (0) Add a link to the fakepath example from the fakepath impl requirement. F [...]

whatwg at whatwg.org whatwg at whatwg.org
Thu May 5 12:26:47 PDT 2011


Author: ianh
Date: 2011-05-05 12:26:46 -0700 (Thu, 05 May 2011)
New Revision: 6083

Modified:
   complete.html
   index
   source
Log:
[e] (0) Add a link to the fakepath example from the fakepath impl requirement.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=12213

Modified: complete.html
===================================================================
--- complete.html	2011-05-05 08:36:42 UTC (rev 6082)
+++ complete.html	2011-05-05 19:26:46 UTC (rev 6083)
@@ -45444,7 +45444,7 @@
 
   </div>
 
-  <div class=example>
+  <div class=example id=fakepath-srsly>
 
    <p>For historical reasons, the <code title=dom-input-value><a href=#dom-input-value>value</a></code> IDL attribute prefixes the
    filename with the string "<code title="">C:\fakepath\</code>". Some
@@ -46927,35 +46927,57 @@
 
   <dl><dt><dfn id=dom-input-value-value title=dom-input-value-value>value</dfn>
 
-   <dd>On getting, it must return the current <a href=#concept-fe-value title=concept-fe-value>value</a> of the element. On setting,
-   it must set the element's <a href=#concept-fe-value title=concept-fe-value>value</a> to the new value, set the
-   element's <a href=#concept-input-value-dirty-flag title=concept-input-value-dirty-flag>dirty value
-   flag</a> to true, and then invoke the <a href=#value-sanitization-algorithm>value sanitization
-   algorithm</a>, if the element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute's current state
-   defines one.</dd>
+   <dd>
 
+    <p>On getting, it must return the current <a href=#concept-fe-value title=concept-fe-value>value</a> of the element. On setting,
+    it must set the element's <a href=#concept-fe-value title=concept-fe-value>value</a> to the new value, set the
+    element's <a href=#concept-input-value-dirty-flag title=concept-input-value-dirty-flag>dirty value
+    flag</a> to true, and then invoke the <a href=#value-sanitization-algorithm>value sanitization
+    algorithm</a>, if the element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute's current state
+    defines one.</p>
+
+   </dd>
+
    <dt><dfn id=dom-input-value-default title=dom-input-value-default>default</dfn>
 
-   <dd>On getting, if the element has a <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, it must return
-   that attribute's value; otherwise, it must return the empty
-   string. 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>
+   <dd>
 
+    <p>On getting, if the element has a <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, it must return
+    that attribute's value; otherwise, it must return the empty
+    string. 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.</p>
+
+   </dd>
+
    <dt><dfn id=dom-input-value-default-on title=dom-input-value-default-on>default/on</dfn>
 
-   <dd>On getting, if the element has a <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, it must return
-   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>
+   <dd>
 
+    <p>On getting, if the element has a <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, it must return
+    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.</p>
+
+   </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, if the
-   new value is the empty string, it must empty the list of <a href=#concept-input-type-file-selected title=concept-input-type-file-selected>selected files</a>;
-   otherwise, it must throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code>
-   exception.</dd>
+   <dd id=fakepath-orly>
 
+    <p>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, if the
+    new value is the empty string, it must empty the list of <a href=#concept-input-type-file-selected title=concept-input-type-file-selected>selected files</a>;
+    otherwise, it must throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code>
+    exception.</p>
+
+    <p class=note>This "fakepath" requirement is a sad accident of
+    history. See <a href=#fakepath-srsly>the example in the File
+    Upload state section</a> for more information.</p>
+
+   </dd>
+
   </dl><hr><p>The <dfn id=dom-input-checked title=dom-input-checked><code>checked</code></dfn> IDL
   attribute allows scripts to manipulate the <a href=#concept-fe-checked title=concept-fe-checked>checkedness</a> of an
   <code><a href=#the-input-element>input</a></code> element. On getting, it must return the current

Modified: index
===================================================================
--- index	2011-05-05 08:36:42 UTC (rev 6082)
+++ index	2011-05-05 19:26:46 UTC (rev 6083)
@@ -45472,7 +45472,7 @@
 
   </div>
 
-  <div class=example>
+  <div class=example id=fakepath-srsly>
 
    <p>For historical reasons, the <code title=dom-input-value><a href=#dom-input-value>value</a></code> IDL attribute prefixes the
    filename with the string "<code title="">C:\fakepath\</code>". Some
@@ -46955,35 +46955,57 @@
 
   <dl><dt><dfn id=dom-input-value-value title=dom-input-value-value>value</dfn>
 
-   <dd>On getting, it must return the current <a href=#concept-fe-value title=concept-fe-value>value</a> of the element. On setting,
-   it must set the element's <a href=#concept-fe-value title=concept-fe-value>value</a> to the new value, set the
-   element's <a href=#concept-input-value-dirty-flag title=concept-input-value-dirty-flag>dirty value
-   flag</a> to true, and then invoke the <a href=#value-sanitization-algorithm>value sanitization
-   algorithm</a>, if the element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute's current state
-   defines one.</dd>
+   <dd>
 
+    <p>On getting, it must return the current <a href=#concept-fe-value title=concept-fe-value>value</a> of the element. On setting,
+    it must set the element's <a href=#concept-fe-value title=concept-fe-value>value</a> to the new value, set the
+    element's <a href=#concept-input-value-dirty-flag title=concept-input-value-dirty-flag>dirty value
+    flag</a> to true, and then invoke the <a href=#value-sanitization-algorithm>value sanitization
+    algorithm</a>, if the element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute's current state
+    defines one.</p>
+
+   </dd>
+
    <dt><dfn id=dom-input-value-default title=dom-input-value-default>default</dfn>
 
-   <dd>On getting, if the element has a <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, it must return
-   that attribute's value; otherwise, it must return the empty
-   string. 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>
+   <dd>
 
+    <p>On getting, if the element has a <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, it must return
+    that attribute's value; otherwise, it must return the empty
+    string. 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.</p>
+
+   </dd>
+
    <dt><dfn id=dom-input-value-default-on title=dom-input-value-default-on>default/on</dfn>
 
-   <dd>On getting, if the element has a <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, it must return
-   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>
+   <dd>
 
+    <p>On getting, if the element has a <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, it must return
+    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.</p>
+
+   </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, if the
-   new value is the empty string, it must empty the list of <a href=#concept-input-type-file-selected title=concept-input-type-file-selected>selected files</a>;
-   otherwise, it must throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code>
-   exception.</dd>
+   <dd id=fakepath-orly>
 
+    <p>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, if the
+    new value is the empty string, it must empty the list of <a href=#concept-input-type-file-selected title=concept-input-type-file-selected>selected files</a>;
+    otherwise, it must throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code>
+    exception.</p>
+
+    <p class=note>This "fakepath" requirement is a sad accident of
+    history. See <a href=#fakepath-srsly>the example in the File
+    Upload state section</a> for more information.</p>
+
+   </dd>
+
   </dl><hr><p>The <dfn id=dom-input-checked title=dom-input-checked><code>checked</code></dfn> IDL
   attribute allows scripts to manipulate the <a href=#concept-fe-checked title=concept-fe-checked>checkedness</a> of an
   <code><a href=#the-input-element>input</a></code> element. On getting, it must return the current

Modified: source
===================================================================
--- source	2011-05-05 08:36:42 UTC (rev 6082)
+++ source	2011-05-05 19:26:46 UTC (rev 6083)
@@ -50880,7 +50880,7 @@
 
   </div>
 
-  <div class="example">
+  <div class="example" id="fakepath-srsly">
 
    <p>For historical reasons, the <code
    title="dom-input-value">value</code> IDL attribute prefixes the
@@ -52580,46 +52580,66 @@
 
    <dt><dfn title="dom-input-value-value">value</dfn>
 
-   <dd>On getting, it must return the current <span
-   title="concept-fe-value">value</span> of the element. On setting,
-   it must set the element's <span
-   title="concept-fe-value">value</span> to the new value, set the
-   element's <span title="concept-input-value-dirty-flag">dirty value
-   flag</span> to true, and then invoke the <span>value sanitization
-   algorithm</span>, if the element's <code
-   title="attr-input-type">type</code> attribute's current state
-   defines one.</dd>
+   <dd>
 
+    <p>On getting, it must return the current <span
+    title="concept-fe-value">value</span> of the element. On setting,
+    it must set the element's <span
+    title="concept-fe-value">value</span> to the new value, set the
+    element's <span title="concept-input-value-dirty-flag">dirty value
+    flag</span> to true, and then invoke the <span>value sanitization
+    algorithm</span>, if the element's <code
+    title="attr-input-type">type</code> attribute's current state
+    defines one.</p>
+
+   </dd>
+
    <dt><dfn title="dom-input-value-default">default</dfn>
 
-   <dd>On getting, if the element has a <code
-   title="attr-input-value">value</code> attribute, it must return
-   that attribute's value; otherwise, it must return the empty
-   string. On setting, it must set the element's <code
-   title="attr-input-value">value</code> attribute to the new
-   value.</dd>
+   <dd>
 
+    <p>On getting, if the element has a <code
+    title="attr-input-value">value</code> attribute, it must return
+    that attribute's value; otherwise, it must return the empty
+    string. On setting, it must set the element's <code
+    title="attr-input-value">value</code> attribute to the new
+    value.</p>
+
+   </dd>
+
    <dt><dfn title="dom-input-value-default-on">default/on</dfn>
 
-   <dd>On getting, if the element has a <code
-   title="attr-input-value">value</code> attribute, it must return
-   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">value</code> attribute to the new
-   value.</dd>
+   <dd>
 
+    <p>On getting, if the element has a <code
+    title="attr-input-value">value</code> attribute, it must return
+    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">value</code> attribute to the new
+    value.</p>
+
+   </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, if the
-   new value is the empty string, it must empty the list of <span
-   title="concept-input-type-file-selected">selected files</span>;
-   otherwise, it must throw an <code>INVALID_STATE_ERR</code>
-   exception.</dd>
+   <dd id="fakepath-orly">
 
+    <p>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, if the
+    new value is the empty string, it must empty the list of <span
+    title="concept-input-type-file-selected">selected files</span>;
+    otherwise, it must throw an <code>INVALID_STATE_ERR</code>
+    exception.</p>
+
+    <p class="note">This "fakepath" requirement is a sad accident of
+    history. See <a href="#fakepath-srsly">the example in the File
+    Upload state section</a> for more information.</p>
+
+   </dd>
+
   </dl>
 
   <hr>




More information about the Commit-Watchers mailing list