Skip to content
Permalink
Browse files

[giow] (2) The 'name' of an <input type=file> field has to get newlin…

…e-normalised. Also, some editorial tweaks.

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=17460
Affected topics: DOM APIs, HTML

git-svn-id: http://svn.whatwg.org/webapps@7275 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed Aug 26, 2012
1 parent e5fcfc9 commit d9fa54d643a7cd041ce31766f1ba5848cd76d18f
Showing with 52 additions and 35 deletions.
  1. +16 −11 complete.html
  2. +16 −11 index
  3. +20 −13 source

<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 25 August 2012</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 26 August 2012</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>

<li>

<p><i>End</i>: For the name and value of each entry in the <var title="">form data set</var> whose type is not "<code title="">file</code>", replace every occurrence of a U+000D
CARRIAGE RETURN (CR) character not followed by a U+000A LINE FEED
(LF) character, and every occurrence of a U+000A LINE FEED (LF)
character not preceded by a U+000D CARRIAGE RETURN (CR) character,
by a two-character string consisting of a U+000D CARRIAGE RETURN
U+000A LINE FEED (CRLF) character pair.</p>
<p><i>End</i>: For the name of each entry in the <var title="">form data set</var>, and for the value of each entry in
the <var title="">form data set</var> whose type is not "<code title="">file</code>" or "<code title="">textarea</code>", replace
every occurrence of a U+000D CARRIAGE RETURN (CR) character not
followed by a U+000A LINE FEED (LF) character, and every
occurrence of a U+000A LINE FEED (LF) character not preceded by a
U+000D CARRIAGE RETURN (CR) character, by a two-character string
consisting of a U+000D CARRIAGE RETURN U+000A LINE FEED (CRLF)
character pair.</p>

<p class=note>In the case of the <a href=#concept-fe-value title=concept-fe-value>value</a> of <code><a href=#the-textarea-element>textarea</a></code>
elements, this newline normalization is redundant, as it is
already normalized from its <a href=#concept-textarea-raw-value title=concept-textarea-raw-value>raw value</a> for the
purposes of the DOM API.</p>
elements, this newline normalization is already performed during
the conversion of the control's <a href=#concept-textarea-raw-value title=concept-textarea-raw-value>raw value</a> into the
control's <a href=#concept-fe-value title=concept-fe-value>value</a> (which also
performs any necesary line wrapping). In the case of
<code><a href=#the-input-element>input</a></code> elements <code title=attr-input-type><a href=#attr-input-type>type</a></code> attributes in the <a href="#file-upload-state-(type=file)" title=attr-input-type-file>File Upload</a> state, the value
is not normalized.</p>

</li>


<ul><li><a href=#child-browsing-context title="child browsing context">child browsing
contexts</a> of the <a href=#active-document>active document</a> whose name is
<var title="">name</var>
<var title="">name</var>,</li>

<li><code><a href=#the-a-element>a</a></code>, <code><a href=#the-applet-element>applet</a></code>, <code><a href=#the-area-element>area</a></code>,
<code><a href=#the-embed-element>embed</a></code>, <code><a href=#the-form-element>form</a></code>, <code><a href=#frameset>frameset</a></code>,
27 index

<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 25 August 2012</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 26 August 2012</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>

<li>

<p><i>End</i>: For the name and value of each entry in the <var title="">form data set</var> whose type is not "<code title="">file</code>", replace every occurrence of a U+000D
CARRIAGE RETURN (CR) character not followed by a U+000A LINE FEED
(LF) character, and every occurrence of a U+000A LINE FEED (LF)
character not preceded by a U+000D CARRIAGE RETURN (CR) character,
by a two-character string consisting of a U+000D CARRIAGE RETURN
U+000A LINE FEED (CRLF) character pair.</p>
<p><i>End</i>: For the name of each entry in the <var title="">form data set</var>, and for the value of each entry in
the <var title="">form data set</var> whose type is not "<code title="">file</code>" or "<code title="">textarea</code>", replace
every occurrence of a U+000D CARRIAGE RETURN (CR) character not
followed by a U+000A LINE FEED (LF) character, and every
occurrence of a U+000A LINE FEED (LF) character not preceded by a
U+000D CARRIAGE RETURN (CR) character, by a two-character string
consisting of a U+000D CARRIAGE RETURN U+000A LINE FEED (CRLF)
character pair.</p>

<p class=note>In the case of the <a href=#concept-fe-value title=concept-fe-value>value</a> of <code><a href=#the-textarea-element>textarea</a></code>
elements, this newline normalization is redundant, as it is
already normalized from its <a href=#concept-textarea-raw-value title=concept-textarea-raw-value>raw value</a> for the
purposes of the DOM API.</p>
elements, this newline normalization is already performed during
the conversion of the control's <a href=#concept-textarea-raw-value title=concept-textarea-raw-value>raw value</a> into the
control's <a href=#concept-fe-value title=concept-fe-value>value</a> (which also
performs any necesary line wrapping). In the case of
<code><a href=#the-input-element>input</a></code> elements <code title=attr-input-type><a href=#attr-input-type>type</a></code> attributes in the <a href="#file-upload-state-(type=file)" title=attr-input-type-file>File Upload</a> state, the value
is not normalized.</p>

</li>


<ul><li><a href=#child-browsing-context title="child browsing context">child browsing
contexts</a> of the <a href=#active-document>active document</a> whose name is
<var title="">name</var>
<var title="">name</var>,</li>

<li><code><a href=#the-a-element>a</a></code>, <code><a href=#the-applet-element>applet</a></code>, <code><a href=#the-area-element>area</a></code>,
<code><a href=#the-embed-element>embed</a></code>, <code><a href=#the-form-element>form</a></code>, <code><a href=#frameset>frameset</a></code>,
33 source

<li>

<p><i>End</i>: For the name and value of each entry in the <var
title="">form data set</var> whose type is not "<code
title="">file</code>", replace every occurrence of a U+000D
CARRIAGE RETURN (CR) character not followed by a U+000A LINE FEED
(LF) character, and every occurrence of a U+000A LINE FEED (LF)
character not preceded by a U+000D CARRIAGE RETURN (CR) character,
by a two-character string consisting of a U+000D CARRIAGE RETURN
U+000A LINE FEED (CRLF) character pair.</p>
<p><i>End</i>: For the name of each entry in the <var
title="">form data set</var>, and for the value of each entry in
the <var title="">form data set</var> whose type is not "<code
title="">file</code>" or "<code title="">textarea</code>", replace
every occurrence of a U+000D CARRIAGE RETURN (CR) character not
followed by a U+000A LINE FEED (LF) character, and every
occurrence of a U+000A LINE FEED (LF) character not preceded by a
U+000D CARRIAGE RETURN (CR) character, by a two-character string
consisting of a U+000D CARRIAGE RETURN U+000A LINE FEED (CRLF)
character pair.</p>

<p class="note">In the case of the <span
title="concept-fe-value">value</span> of <code>textarea</code>
elements, this newline normalization is redundant, as it is
already normalized from its <span
title="concept-textarea-raw-value">raw value</span> for the
purposes of the DOM API.</p>
elements, this newline normalization is already performed during
the conversion of the control's <span
title="concept-textarea-raw-value">raw value</span> into the
control's <span title="concept-fe-value">value</span> (which also
performs any necesary line wrapping). In the case of
<code>input</code> elements <code
title="attr-input-type">type</code> attributes in the <span
title="attr-input-type-file">File Upload</span> state, the value
is not normalized.</p>

</li>


<li><span title="child browsing context">child browsing
contexts</span> of the <span>active document</span> whose name is
<var title="">name</var,</li>
<var title="">name</var>,</li>

<li><code>a</code>, <code>applet</code>, <code>area</code>,
<code>embed</code>, <code>form</code>, <code>frameset</code>,

0 comments on commit d9fa54d

Please sign in to comment.
You can’t perform that action at this time.