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

[whatwg] Placeholder option for text input boxes

From: Kristof Zelechovski <giecrilj@stegny.2a.pl>
Date: Wed, 1 Oct 2008 19:47:21 +0200
Message-ID: <3CB5F5AFAEFD466E9B9F860E86F1A9EA@POCZTOWIEC>
This was Garret's original code; it cannot be used for feature detection, as
explained.
Chris

-----Original Message-----
From: whatwg-bounces@lists.whatwg.org
[mailto:whatwg-bounces at lists.whatwg.org] On Behalf Of Joao Eiras
Sent: Wednesday, October 01, 2008 7:30 PM
To: Aaron Boodman; whatwg at lists.whatwg.org
Subject: Re: [whatwg] Placeholder option for text input boxes

Another thing:

if( 'placeholder' in referencetoInput ){ ... }

can be used for feature detection, else a javascript fallback could be
supplied as the later is the common case.
Received on Wednesday, 1 October 2008 10:47:21 UTC

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