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

[whatwg] Placeholder option for text input boxes

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Wed, 1 Oct 2008 18:02:01 -0700
Message-ID: <c9e12660810011802v1922e1deq779dd45238b2d319@mail.gmail.com>
On Wed, Oct 1, 2008 at 5:45 PM, Garrett Smith <dhtmlkitchen at gmail.com> wrote:
> On Wed, Oct 1, 2008 at 5:11 PM, Maciej Stachowiak <mjs at apple.com> wrote:
>>
>> On Oct 1, 2008, at 10:27 AM, Aaron Boodman wrote:
>>
>>> On Wed, Oct 1, 2008 at 10:05 AM, Kristof Zelechovski
>>> <giecrilj at stegny.2a.pl> wrote:
>>>>
>
> Other INPUT attributes work don't reflect.
>

(Other INPUT attributes don't reflect.)

Please bear with my typos and grammatical errors (mostly caused by editing).

> Currently, input.setAttribute('placeholder', 'foo'), does update the
> visual placeholder text. This is different than say the "value"
> property of an input, which can be set, but won't change the attribute
> value:
>

That's actually a poor comparison: setAttribute('placeholder', 'new')
to getAttribute('value');

Doesn't really prove anything. Setting attributes may or may not have
the desired side effects depending on the browser (the example below
shows this to be true).

http://asymptotia.com/wp-images/2008/02/knut_polar_bear_cub.jpg

Garrett

>
> Garrett
>
>> Regards,
>> Maciej
>>
>>
>
Received on Wednesday, 1 October 2008 18:02:01 UTC

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