[whatwg] Placeholder option for text input boxes

Nils Dagsson Moskopp nils-dagsson-moskopp at dieweltistgarnichtso.net
Tue Sep 30 11:30:13 PDT 2008


Am Dienstag, den 30.09.2008, 12:04 -0500 schrieb Tab Atkins Jr.:
> 4) <label> (moving label textual content into <input> as placeholder
> text; currently with Javascript to mutate the DOM, in the future with
> CSS to present the desired appearance while keeping the DOM stable)
>   Pro: Most semantic.  Can be pushed site-wide without having to
> change page code.  Can't break existing content, because it is opt-in
> (unless this gets put into browser default stylesheets).  Accessible
> (if using CSS solution; probably not accessible if DOM mutation is
> employed).  Degrades well (just stays an ordinary visible label if
> browser doesn't support the rule).
Wow. I'll now deny ever mentioning @title !

>   Con: Most complex solution for implementors.  Need to push proposal
> through CSS WG, which can be slower than WHATWG.
Since it's a purely presentational thing, that seems the way to go !
AFAIK, Development of CSS 3 will continue until 2011.


Cheers,

Nils






More information about the whatwg mailing list