W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2008

[whatwg] Placeholder option for text input boxes

From: Christoph Päper <christoph.paeper@crissov.de>
Date: Wed, 1 Oct 2008 00:21:30 +0200
Message-ID: <7E9530AD-92B3-45A3-963D-501A6BA1C55C@crissov.de>
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>


   [Foo     ]


   <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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:05 UTC