[whatwg] Placeholder option for text input boxes
dhtmlkitchen at gmail.com
Wed Oct 1 18:02:01 PDT 2008
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
That's actually a poor comparison: setAttribute('placeholder', 'new')
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).
More information about the whatwg