Skip to content
Permalink
Browse files
[e] (0) Explain the magic name='' values.
git-svn-id: http://svn.whatwg.org/webapps@5206 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 27, 2010
1 parent d6fb8ca commit d5106634538712110d6896ee0222952fb5b4ac77
Showing 3 changed files with 90 additions and 26 deletions.
@@ -38218,7 +38218,7 @@ <h6 id=hidden-state><span class=secno>4.10.7.1.1 </span><dfn title=attr-input-ty

<p>If the <code title=attr-input-value><a href=#attr-input-value>name</a></code> attribute is
present and has a value that is a <a href=#case-sensitive>case-sensitive</a> match
for the string "<code title="">_charset_</code>", then the element's
for the string "<code title=attr-fe-name-charset><a href=#attr-fe-name-charset>_charset_</a></code>", then the element's
<code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute must be
omitted.</p>

@@ -44516,7 +44516,25 @@ <h5 id=naming-form-controls><span class=secno>4.10.19.1 </span>Naming form contr
submission</a> and in the <code><a href=#the-form-element>form</a></code> element's <code title=dom-form-elements><a href=#dom-form-elements>elements</a></code> object. If the attribute
is specified, its value must not be the empty string.</p>

<div class=impl>
<p>Any non-empty value for <code title=attr-form-name><a href=#attr-form-name>name</a></code>
is allowed, but the names "<code title=attr-fe-name-charset><a href=#attr-fe-name-charset>_charset_</a></code>" and "<code title=attr-fe-name-isindex><a href=#attr-fe-name-isindex>isindex</a></code>" are special:</p>

<dl><dt><dfn id=attr-fe-name-isindex title=attr-fe-name-isindex><code>isindex</code></dfn></dt>
<dd>
<p>This value, if used as the name of a <a href=#text-state-and-search-state title=attr-input-type-text>Text</a> control that is the only
control in a form that is submitted using the <code title=attr-fs-enctype-urlencoded><a href=#attr-fs-enctype-urlencoded>application/x-www-form-urlencoded</a></code>
mechanism, causes the submission to only include the value of this
control, with on name.</p>
</dd>

<dt><dfn id=attr-fe-name-charset title=attr-fe-name-charset><code>_charset_</code></dfn></dt>
<dd>
<p>This value, if used as the name of a <a href=#hidden-state title=attr-input-type-hidden>Hidden</a> control with no <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, is automatically
given a value during submission consisting of the submission
character encoding.</p>
</dd>

</dl><div class=impl>

<p>The <dfn id=dom-fe-name title=dom-fe-name><code>name</code></dfn> IDL
attribute must <a href=#reflect>reflect</a> the <code title=attr-fe-name><a href=#attr-fe-name>name</a></code> content attribute.</p>
@@ -45876,7 +45894,7 @@ <h5 id=url-encoded-form-data><span class=secno>4.10.21.4 </span>URL-encoded form
<p>For each entry in the <var title="">form data set</var>,
perform these substeps:</p>

<ol><li><p>If the entry's name is "<code title="">_charset_</code>"
<ol><li><p>If the entry's name is "<code title=attr-fe-name-charset><a href=#attr-fe-name-charset>_charset_</a></code>"
and its type is "<code title="">hidden</code>", replace its value
with <var title="">charset</var>.</li>

@@ -45948,7 +45966,7 @@ <h5 id=url-encoded-form-data><span class=secno>4.10.21.4 </span>URL-encoded form

</dl></li>

<li><p>If the entry's name is "<code title="">isindex</code>",
<li><p>If the entry's name is "<code title=attr-fe-name-isindex><a href=#attr-fe-name-isindex>isindex</a></code>",
its type is "<code title="">text</code>", and this is the first
entry in the <var title="">form data set</var>, then append the
value to <var title="">result</var> and skip the rest of the
@@ -45986,7 +46004,7 @@ <h5 id=multipart-form-data><span class=secno>4.10.21.5 </span>Multipart form dat
<p>Each entry in the <var title="">form data set</var> is a
<i>field</i>, the name of the entry is the <i>field name</i> and the
value of the entry is the <i>field value</i>, unless the entry's
name is "<code title="">_charset_</code>" and its type is "<code title="">hidden</code>", in which case the <i>field value</i> is the
name is "<code title=attr-fe-name-charset><a href=#attr-fe-name-charset>_charset_</a></code>" and its type is "<code title="">hidden</code>", in which case the <i>field value</i> is the
character encoding used by the aforementioned algorithm to encode
the value of the field.</p>

@@ -46027,9 +46045,8 @@ <h5 id=plain-text-form-data><span class=secno>4.10.21.6 </span>Plain text form d
<li><p>Let <var title="">charset</var> be the <a href=#preferred-mime-name>preferred MIME
name</a> of the selected character encoding.</li>

<li><p>If the entry's name is "<code title="">_charset_</code>" and
its type is "<code title="">hidden</code>", replace its value with
<var title="">charset</var>.</li>
<li><p>If the entry's name is "<code title=attr-fe-name-charset><a href=#attr-fe-name-charset>_charset_</a></code>" and its type is
"<code title="">hidden</code>", replace its value with <var title="">charset</var>.</li>

<li><p>If the entry's type is "<code title="">file</code>", replace
its value with the file's filename only.</li>
@@ -82760,7 +82777,7 @@ <h5 id=the-before-head-insertion-mode><span class=secno>12.2.5.6 </span>The "<df
<p>Act as if a start tag token with the tag name "input" had been
seen, with all the attributes from the "isindex" token except
"name", "action", and "prompt". Set the <code title=attr-fe-name><a href=#attr-fe-name>name</a></code> attribute of the resulting
<code><a href=#the-input-element>input</a></code> element to the value "<code title="">isindex</code>".</p>
<code><a href=#the-input-element>input</a></code> element to the value "<code title=attr-fe-name-isindex><a href=#attr-fe-name-isindex>isindex</a></code>".</p>

<p>Act as if a stream of character tokens had been seen (see
below for what they should say).</p>
35 index
@@ -38145,7 +38145,7 @@ interface <dfn id=htmlformelement>HTMLFormElement</dfn> : <a href=#htmlelement>H

<p>If the <code title=attr-input-value><a href=#attr-input-value>name</a></code> attribute is
present and has a value that is a <a href=#case-sensitive>case-sensitive</a> match
for the string "<code title="">_charset_</code>", then the element's
for the string "<code title=attr-fe-name-charset><a href=#attr-fe-name-charset>_charset_</a></code>", then the element's
<code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute must be
omitted.</p>

@@ -44443,7 +44443,25 @@ out of 233&thinsp;257&thinsp;824 bytes available&lt;/meter&gt;&lt;/p&gt;</pre>
submission</a> and in the <code><a href=#the-form-element>form</a></code> element's <code title=dom-form-elements><a href=#dom-form-elements>elements</a></code> object. If the attribute
is specified, its value must not be the empty string.</p>

<div class=impl>
<p>Any non-empty value for <code title=attr-form-name><a href=#attr-form-name>name</a></code>
is allowed, but the names "<code title=attr-fe-name-charset><a href=#attr-fe-name-charset>_charset_</a></code>" and "<code title=attr-fe-name-isindex><a href=#attr-fe-name-isindex>isindex</a></code>" are special:</p>

<dl><dt><dfn id=attr-fe-name-isindex title=attr-fe-name-isindex><code>isindex</code></dfn></dt>
<dd>
<p>This value, if used as the name of a <a href=#text-state-and-search-state title=attr-input-type-text>Text</a> control that is the only
control in a form that is submitted using the <code title=attr-fs-enctype-urlencoded><a href=#attr-fs-enctype-urlencoded>application/x-www-form-urlencoded</a></code>
mechanism, causes the submission to only include the value of this
control, with on name.</p>
</dd>

<dt><dfn id=attr-fe-name-charset title=attr-fe-name-charset><code>_charset_</code></dfn></dt>
<dd>
<p>This value, if used as the name of a <a href=#hidden-state title=attr-input-type-hidden>Hidden</a> control with no <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, is automatically
given a value during submission consisting of the submission
character encoding.</p>
</dd>

</dl><div class=impl>

<p>The <dfn id=dom-fe-name title=dom-fe-name><code>name</code></dfn> IDL
attribute must <a href=#reflect>reflect</a> the <code title=attr-fe-name><a href=#attr-fe-name>name</a></code> content attribute.</p>
@@ -45803,7 +45821,7 @@ fur
<p>For each entry in the <var title="">form data set</var>,
perform these substeps:</p>

<ol><li><p>If the entry's name is "<code title="">_charset_</code>"
<ol><li><p>If the entry's name is "<code title=attr-fe-name-charset><a href=#attr-fe-name-charset>_charset_</a></code>"
and its type is "<code title="">hidden</code>", replace its value
with <var title="">charset</var>.</li>

@@ -45875,7 +45893,7 @@ fur

</dl></li>

<li><p>If the entry's name is "<code title="">isindex</code>",
<li><p>If the entry's name is "<code title=attr-fe-name-isindex><a href=#attr-fe-name-isindex>isindex</a></code>",
its type is "<code title="">text</code>", and this is the first
entry in the <var title="">form data set</var>, then append the
value to <var title="">result</var> and skip the rest of the
@@ -45913,7 +45931,7 @@ fur
<p>Each entry in the <var title="">form data set</var> is a
<i>field</i>, the name of the entry is the <i>field name</i> and the
value of the entry is the <i>field value</i>, unless the entry's
name is "<code title="">_charset_</code>" and its type is "<code title="">hidden</code>", in which case the <i>field value</i> is the
name is "<code title=attr-fe-name-charset><a href=#attr-fe-name-charset>_charset_</a></code>" and its type is "<code title="">hidden</code>", in which case the <i>field value</i> is the
character encoding used by the aforementioned algorithm to encode
the value of the field.</p>

@@ -45954,9 +45972,8 @@ fur
<li><p>Let <var title="">charset</var> be the <a href=#preferred-mime-name>preferred MIME
name</a> of the selected character encoding.</li>

<li><p>If the entry's name is "<code title="">_charset_</code>" and
its type is "<code title="">hidden</code>", replace its value with
<var title="">charset</var>.</li>
<li><p>If the entry's name is "<code title=attr-fe-name-charset><a href=#attr-fe-name-charset>_charset_</a></code>" and its type is
"<code title="">hidden</code>", replace its value with <var title="">charset</var>.</li>

<li><p>If the entry's type is "<code title="">file</code>", replace
its value with the file's filename only.</li>
@@ -75802,7 +75819,7 @@ document.body.appendChild(text);
<p>Act as if a start tag token with the tag name "input" had been
seen, with all the attributes from the "isindex" token except
"name", "action", and "prompt". Set the <code title=attr-fe-name><a href=#attr-fe-name>name</a></code> attribute of the resulting
<code><a href=#the-input-element>input</a></code> element to the value "<code title="">isindex</code>".</p>
<code><a href=#the-input-element>input</a></code> element to the value "<code title=attr-fe-name-isindex><a href=#attr-fe-name-isindex>isindex</a></code>".</p>

<p>Act as if a stream of character tokens had been seen (see
below for what they should say).</p>
46 source
@@ -42537,7 +42537,8 @@ interface <dfn>HTMLFormElement</dfn> : <span>HTMLElement</span> {

<p>If the <code title="attr-input-value">name</code> attribute is
present and has a value that is a <span>case-sensitive</span> match
for the string "<code title="">_charset_</code>", then the element's
for the string "<code
title="attr-fe-name-charset">_charset_</code>", then the element's
<code title="attr-input-value">value</code> attribute must be
omitted.</p>

@@ -49843,6 +49844,34 @@ out of 233&#x2009;257&#x2009;824 bytes available&lt;/meter>&lt;/p></pre>
title="dom-form-elements">elements</code> object. If the attribute
is specified, its value must not be the empty string.</p>

<p>Any non-empty value for <code title="attr-form-name">name</code>
is allowed, but the names "<code
title="attr-fe-name-charset">_charset_</code>" and "<code
title="attr-fe-name-isindex">isindex</code>" are special:</p>

<dl>

<dt><dfn title="attr-fe-name-isindex"><code>isindex</code></dfn></dt>
<dd>
<p>This value, if used as the name of a <span
title="attr-input-type-text">Text</span> control that is the only
control in a form that is submitted using the <code
title="attr-fs-enctype-urlencoded">application/x-www-form-urlencoded</code>
mechanism, causes the submission to only include the value of this
control, with on name.</p>
</dd>

<dt><dfn title="attr-fe-name-charset"><code>_charset_</code></dfn></dt>
<dd>
<p>This value, if used as the name of a <span
title="attr-input-type-hidden">Hidden</span> control with no <code
title="attr-input-value">value</code> attribute, is automatically
given a value during submission consisting of the submission
character encoding.</p>
</dd>

</dl>

<div class="impl">

<p>The <dfn title="dom-fe-name"><code>name</code></dfn> IDL
@@ -51492,7 +51521,7 @@ fur

<ol>

<li><p>If the entry's name is "<code title="">_charset_</code>"
<li><p>If the entry's name is "<code title="attr-fe-name-charset">_charset_</code>"
and its type is "<code title="">hidden</code>", replace its value
with <var title="">charset</var>.</p></li>

@@ -51576,7 +51605,7 @@ fur

</li>

<li><p>If the entry's name is "<code title="">isindex</code>",
<li><p>If the entry's name is "<code title="attr-fe-name-isindex">isindex</code>",
its type is "<code title="">text</code>", and this is the first
entry in the <var title="">form data set</var>, then append the
value to <var title="">result</var> and skip the rest of the
@@ -51622,7 +51651,7 @@ fur
<p>Each entry in the <var title="">form data set</var> is a
<i>field</i>, the name of the entry is the <i>field name</i> and the
value of the entry is the <i>field value</i>, unless the entry's
name is "<code title="">_charset_</code>" and its type is "<code
name is "<code title="attr-fe-name-charset">_charset_</code>" and its type is "<code
title="">hidden</code>", in which case the <i>field value</i> is the
character encoding used by the aforementioned algorithm to encode
the value of the field.</p>
@@ -51669,9 +51698,10 @@ fur
<li><p>Let <var title="">charset</var> be the <span>preferred MIME
name</span> of the selected character encoding.</p></li>

<li><p>If the entry's name is "<code title="">_charset_</code>" and
its type is "<code title="">hidden</code>", replace its value with
<var title="">charset</var>.</p></li>
<li><p>If the entry's name is "<code
title="attr-fe-name-charset">_charset_</code>" and its type is
"<code title="">hidden</code>", replace its value with <var
title="">charset</var>.</p></li>

<li><p>If the entry's type is "<code title="">file</code>", replace
its value with the file's filename only.</p></li>
@@ -94482,7 +94512,7 @@ document.body.appendChild(text);
"name", "action", and "prompt". Set the <code
title="attr-fe-name">name</code> attribute of the resulting
<code>input</code> element to the value "<code
title="">isindex</code>".</p>
title="attr-fe-name-isindex">isindex</code>".</p>

<p>Act as if a stream of character tokens had been seen (see
below for what they should say).</p>

0 comments on commit d510663

Please sign in to comment.