[whatwg] Interaction between @multiple, @pattern and @list

Ian Hickson ian at hixie.ch
Tue Jan 4 15:28:10 PST 2011

On Fri, 1 Oct 2010, Jonas Sicking wrote:
> However, for <input type=email multiple pattern=".*@company.com"> the 
> pattern is applied to the value as a whole, rather than to the 
> individual addresses. This seems less useful. It can be worked around 
> using more complex patterns, such as pattern=".*@company.com(, 
> .*@company.com)*". This works but is pretty clumsy. It also gets worse 
> for situations like pattern=".*@(company.com|parner.com)(, 
> .*@(company.com|partner.com))*".
> I suggest that when pattern and multiple are both applied on a control, 
> that the pattern is applied to each individual component of the value, 
> rather than the value as a whole.


Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

More information about the whatwg mailing list