Skip to content

Commit

Permalink
[] (0) WF2: mailto submissions
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@2169 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Sep 12, 2008
1 parent 39fa161 commit b1ebe86
Show file tree
Hide file tree
Showing 2 changed files with 123 additions and 4 deletions.
58 changes: 56 additions & 2 deletions index
Expand Up @@ -27948,12 +27948,66 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href="#htmlelem
headers</dfn>

<dd>
<p class=big-issue>...
<p>Let <var title="">headers</var> be the resulting encoding the <var
title="">form data set</var> using the <a
href="#applicationx-www-form-urlencoded"><code
title="">application/x-www-form-urlencoded</code> encoding
algorithm</a>.</p>

<p>Replace occurances of U+002B PLUS SIGN characters (+) in <var
title="">headers</var> with the string "<code title="">%20</code>".</p>

<p>Let <var title="">destination</var> consist of all the characters
from the first character in <var title="">action</var> to the
character immediately before the first U+003F QUESTION MARK character
(?), if any, or the end of the string if there are none.</p>

<p>Append a single U+003F QUESTION MARK character (?) to <var
title="">destination</var>.</p>

<p>Append <var title="">headers</var> to <var
title="">destination</var>.</p>

<p>Let <var title="">target browsing context</var> be <a
href="#the-form0">the form submission target browsing context</a>.</p>

<p><a href="#navigate">Navigate</a> <var title="">target browsing
context</var> to <var title="">destination</var>. If <var
title="">target browsing context</var> was newly created for this
purpose by the steps above, then it must be navigated with <a
href="#replacement">replacement enabled</a>.</p>

<dt><dfn id=mail-as title=submit-mailto-body>Mail as body</dfn>

<dd>
<p class=big-issue>...
<p>Let <var title="">body</var> be the resulting encoding the <var
title="">form data set</var> using the <a
href="#appropriate">appropriate form encoding algorithm</a> and then
%-escaping all the characters in the resulting string that do not
match the <code title="">unreserved</code> production in the URI
Generic Syntax. <a href="#refsRFC3986">[RFC3986]</a></p>

<p>Let <var title="">destination</var> have the same value as <var
title="">action</var>.</p>

<p>If <var title="">destination</var> does not contain a U+003F
QUESTION MARK character (?), append a single U+003F QUESTION MARK
character (?) to <var title="">destination</var>. Otherwise, append a
single U+0026 AMPERSAND character (&amp;).</p>

<p>Append the string "<code title="">body=</code>" to <var
title="">destination</var>.</p>

<p>Append <var title="">body</var> to <var title="">destination</var>.</p>

<p>Let <var title="">target browsing context</var> be <a
href="#the-form0">the form submission target browsing context</a>.</p>

<p><a href="#navigate">Navigate</a> <var title="">target browsing
context</var> to <var title="">destination</var>. If <var
title="">target browsing context</var> was newly created for this
purpose by the steps above, then it must be navigated with <a
href="#replacement">replacement enabled</a>.</p>
</dl>

<p><dfn id=the-form0>The form submission target browsing context</dfn> is
Expand Down
69 changes: 67 additions & 2 deletions source
Expand Up @@ -25079,10 +25079,75 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
</dd>

<dt><dfn title="submit-mailto-headers">Mail with headers</dfn>
<dd><p class="big-issue">...</p></dd>
<dd>

<p>Let <var title="">headers</var> be the resulting encoding the
<var title="">form data set</var> using the <span><code
title="">application/x-www-form-urlencoded</code> encoding
algorithm</span>.</p>

<p>Replace occurances of U+002B PLUS SIGN characters (+) in <var
title="">headers</var> with the string "<code
title="">%20</code>".</p>

<p>Let <var title="">destination</var> consist of all the
characters from the first character in <var
title="">action</var> to the character immediately before the
first U+003F QUESTION MARK character (?), if any, or the end of
the string if there are none.</p>

<p>Append a single U+003F QUESTION MARK character (?) to <var
title="">destination</var>.</p>

<p>Append <var title="">headers</var> to <var
title="">destination</var>.</p>

<p>Let <var title="">target browsing context</var> be <span>the
form submission target browsing context</span>.</p>

<p><span>Navigate</span> <var title="">target browsing
context</var> to <var title="">destination</var>. If <var
title="">target browsing context</var> was newly created for
this purpose by the steps above, then it must be navigated with
<span>replacement enabled</span>.</p>

</dd>

<dt><dfn title="submit-mailto-body">Mail as body</dfn>
<dd><p class="big-issue">...</p></dd>
<dd>

<p>Let <var title="">body</var> be the resulting encoding the
<var title="">form data set</var> using the <span>appropriate
form encoding algorithm</span> and then %-escaping all the
characters in the resulting string that do not match the <code
title="">unreserved</code> production in the URI Generic
Syntax. <a href="#refsRFC3986">[RFC3986]</a></p>

<p>Let <var title="">destination</var> have the same value as
<var title="">action</var>.</p>

<p>If <var title="">destination</var> does not contain a U+003F
QUESTION MARK character (?), append a single U+003F QUESTION
MARK character (?) to <var
title="">destination</var>. Otherwise, append a single U+0026
AMPERSAND character (&amp;).</p>

<p>Append the string "<code title="">body=</code>" to <var
title="">destination</var>.</p>

<p>Append <var title="">body</var> to <var
title="">destination</var>.</p>

<p>Let <var title="">target browsing context</var> be <span>the
form submission target browsing context</span>.</p>

<p><span>Navigate</span> <var title="">target browsing
context</var> to <var title="">destination</var>. If <var
title="">target browsing context</var> was newly created for
this purpose by the steps above, then it must be navigated with
<span>replacement enabled</span>.</p>

</dd>

</dl>

Expand Down

0 comments on commit b1ebe86

Please sign in to comment.