- From: Ian Hickson <ian@hixie.ch>
- Date: Fri, 25 Jun 2004 21:30:53 +0000 (UTC)
On Fri, 25 Jun 2004, Hallvord Reiar Michaelsen Steen wrote:
>
> Sometimes (and maybe more often than not, e.g. webmail!) one would want
> to allow a list of E-mail addresses rather than only one in an INPUT
> type="email". The spec doesn't discuss this as far as I can see. Would
> it be better to allow this explicitly, stating that UAs should be able
> to validate a comma- or semicolon-separated list of mail addresses and
> that authors who wish to limit the field to only one may specify a
> pattern to limit it? Something like pattern=".*@[^@]*" would mean the
> input could only be valid if the field contained one and only one @
> sign.
>
> Thoughts? Which is in your opinion more common, type=email-single or
> type=email-multiple?
Single. By a long way.
You can do multiple e-mails by using templates:
<ul>
<li repeat="template" id="ccs">
<input type="email" name="cc">
<input type="remove">
</li>
<repeat/>
</ul>
<p><input type="add" template="ccs"></p>
--
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 25 June 2004 14:30:53 UTC