W3C home > Mailing lists > Public > uri@w3.org > March 2009

draft-duerst-mailto-bis-05 - Detailed review of Get form submission and the To hvalue

From: Michael A. Puls II <shadow2531@gmail.com>
Date: Wed, 11 Mar 2009 18:12:05 -0400
To: uri@w3.org
Message-ID: <op.uqnemfrz1ejg13@sandra-svwliu01>

The following should submit "mailto:?subject=test" to the default mail client (whether that's Thunderbird, M2 or Outlook or Gmail etc.). The to=test value is dropped because GET submissions drop '?' and everything after it.

<form action="mailto:?to=test" method="GET">
    <input name="subject" value="test">

Now, with the following, you'll either get "mailto:test?subject=test" or "mailto:?subject=test" depending on how you interpret the mailto spec.

<form action="mailto:test" method="GET">
    <input name="subject" value="test">

The mailto spec says that "mailto:test" is equivalent to "mailto:?to=test". If so, then you can see why an implementation might drop the 'test' value. But, you can also look at it the other way and say that according to generic form submission, the To value should stay.

This means that 'mailto:test' and 'mailto:?to=test' are NOT equivalent as far as form sumbission goes. A note about this in the mailto spec (or some new mailto form submission spec) might help clear this up.

<http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#submit-mailto-headers> currently defines the 'mailto:' GET, PUT and DELETE submission as having different behavior between 'mailto:test' and 'mailto:?to=test'.

Received on Wednesday, 11 March 2009 22:12:43 UTC

This archive was generated by hypermail 2.4.0 : Sunday, 10 October 2021 22:17:52 UTC