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

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.

Done.

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

Received on Tuesday, 4 January 2011 15:28:10 UTC