Skip to content

Commit

Permalink
[giow] (2) The 'name' of an <input type=file> field has to get newlin…
Browse files Browse the repository at this point in the history
…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 d9fa54d
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 35 deletions.
27 changes: 16 additions & 11 deletions complete.html
Expand Up @@ -246,7 +246,7 @@

<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>
Expand Down Expand Up @@ -57884,17 +57884,22 @@ <h5 id=form-submission-algorithm><span class=secno>4.10.22.3 </span>Form submiss

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

Expand Down Expand Up @@ -68168,7 +68173,7 @@ <h4 id=named-access-on-the-window-object><span class=secno>6.2.4 </span>Named ac

<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>,
Expand Down
27 changes: 16 additions & 11 deletions index
Expand Up @@ -246,7 +246,7 @@

<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>
Expand Down Expand Up @@ -57884,17 +57884,22 @@ fur

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

Expand Down Expand Up @@ -68168,7 +68173,7 @@ interface <dfn id=window>Window</dfn> : <a href=#eventtarget>EventTarget</a> {

<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>,
Expand Down
33 changes: 20 additions & 13 deletions source
Expand Up @@ -67652,21 +67652,28 @@ fur

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

Expand Down Expand Up @@ -79862,7 +79869,7 @@ interface <dfn>Window</dfn> : <span>EventTarget</span> {

<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>,
Expand Down

0 comments on commit d9fa54d

Please sign in to comment.