[whatwg] [html5] attribute value whitespace handling

On Tue, 19 Jul 2005, Anne van Kesteren wrote:
>
> What kind of input type is the following according to HTML 5:
> 
>  <input type="   email
> ">

WF2 doesn't define this (intentionally). Extrapolating from HTML4 it would 
be of type "email"; which is probably what WA1 will eventually say.


> According to the attribute value rules of HTML 4 it should be 'email', 
> but I'm not sure how that is implemented at the moment. Similar question 
> for:
> 
>  <input type="email" value="    example at example.org
>     ">
> 
> ... valid or invalid?

The form control there would not be valid. There's nothing in either HTML4 
or WF2 that says that leading whitespace on the value="" attribute should 
de stripped, as far as I can tell.


> As Web Forms 2 extends on HTML 4 at the moment this is not particularly 
> clear and it would be nice to know.

The problem is that this is a slippery slope that I don't really want to 
go down with WF2. I agree that these things should be defined and I'll 
make sure that they are in WA1.

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

Received on Tuesday, 19 July 2005 06:29:16 UTC