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

[whatwg] Placeholder option for text input boxes

From: Joćo Eiras <joao.eiras@gmail.com>
Date: Wed, 1 Oct 2008 14:32:42 +0100
Message-ID: <e72b1b360810010632n7ce2a418s291271a537af7210@mail.gmail.com>
> This usage is deprecated because it can not be generalized to all possible attribute names
> We recommend the use of generic methods on the core Element interface for setting, getting and removing attributes.

Although I understand your reasoning, I disagree. The DOM does not
exist only to wrap the representation of the original document markup.
The DOM is a programming API and programmings API should make programs
more easy to code nd more performant. Having a get/setAttribute
indirection plus type conversions between serialized strings and back
to a usable type (number, function) are not friendly at all.
The idea of dom properties for attributes is not to find a generic
structure for all atributes, but to have support for known attributes
with known behavior.

Please, don't make such claim again, they are misleading, and clearly
not realistic.





On Wed, Oct 1, 2008 at 12:39 PM, Kristof Zelechovski
<giecrilj at stegny.2a.pl> wrote:
> The attributes are exposed as properties for compatibility with DOM Level 0.
> This usage is deprecated because it can not be generalized to all possible
> attribute names, as is required both for XML and potentially for future
> versions of HTML. We recommend the use of generic methods on the core
> Element interface for setting, getting and removing attributes.
> <http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.html#ID-64
> 2250288>
>
> -----Original Message-----
> From: Benjamin Hawkes-Lewis [mailto:bhawkeslewis at googlemail.com]
> Sent: Wednesday, October 01, 2008 12:42 PM
> To: Kristof Zelechovski
> Cc: 'Garrett Smith'; whatwg at whatwg.org
> Subject: Re: [whatwg] Placeholder option for text input boxes
>
> Kristof Zelechovski wrote:
>> DOM properties are not becoming obsolete; accessing attributes by
> properties
>> is.
>
> Hmm. Citation?
>
> --
> Benjamin Hawkes-Lewis
>
>
Received on Wednesday, 1 October 2008 06:32:42 UTC

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