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

[whatwg] Placeholder option for text input boxes

From: Nils Dagsson Moskopp <nils-dagsson-moskopp@dieweltistgarnichtso.net>
Date: Tue, 30 Sep 2008 20:30:13 +0200
Message-ID: <1222799413.21677.21.camel@dell.linuxdev.us.dell.com>
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
Received on Tuesday, 30 September 2008 11:30:13 UTC

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