Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[e] (0) Add a link to the fakepath example from the fakepath impl req…
…uirement.

Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=12213

git-svn-id: http://svn.whatwg.org/webapps@6083 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed May 5, 2011
1 parent 4855491 commit 162ec26
Show file tree
Hide file tree
Showing 3 changed files with 135 additions and 71 deletions.
62 changes: 42 additions & 20 deletions complete.html
Expand Up @@ -45444,7 +45444,7 @@ <h6 id=file-upload-state><span class=secno>4.10.7.1.18 </span><dfn title=attr-in

</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
Expand Down Expand Up @@ -46927,34 +46927,56 @@ <h5 id=common-input-element-apis><span class=secno>4.10.7.3 </span>Common <code>

<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
Expand Down
62 changes: 42 additions & 20 deletions index
Expand Up @@ -45472,7 +45472,7 @@ interface <dfn id=htmlformelement>HTMLFormElement</dfn> : <a href=#htmlelement>H

</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
Expand Down Expand Up @@ -46955,34 +46955,56 @@ You cannot submit this form when the field is incorrect.</samp></pre>

<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
Expand Down
82 changes: 51 additions & 31 deletions source
Expand Up @@ -50880,7 +50880,7 @@ interface <dfn>HTMLFormElement</dfn> : <span>HTMLElement</span> {

</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
Expand Down Expand Up @@ -52580,45 +52580,65 @@ You cannot submit this form when the field is incorrect.</samp></pre>

<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>

Expand Down

0 comments on commit 162ec26

Please sign in to comment.