[whatwg] Placeholder option for text input boxes

Tab Atkins Jr.:
>
> 1) @placeholder
>   Con: Duplicates semantics already present in <label>, (...)

That could be circumvented by combining the two:

   <label>Foo <input type=text placeholder></label>

yielded

   [Foo     ]

whereas

   <label>Foo <input type=text placeholder="Bar"></label>

resulted in

   [Bar     ].

A similar observation as for |results|, concerning "binary"  
attributes, applies. Also I think the (textual) content of |label| is  
too hard to push into a placeholder text, because it may include all  
kinds of markup and style that it should or should not retain.

> 2) @alt

Non-interactive UAs might choose to use |alt| instead of rendering  
form controls.

Received on Tuesday, 30 September 2008 15:21:30 UTC