[whatwg] Placeholder option for text input boxes

Kristof Zelechovski giecrilj at stegny.2a.pl
Wed Oct 1 10:47:21 PDT 2008


This was Garret's original code; it cannot be used for feature detection, as
explained.
Chris

-----Original Message-----
From: whatwg-bounces at 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.







More information about the whatwg mailing list