[whatwg] Placeholder option for text input boxes
Christoph Päper
christoph.paeper at crissov.de
Tue Sep 30 15:21:30 PDT 2008
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.
More information about the whatwg
mailing list