[whatwg] Placeholder option for text input boxes

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