W3C home > Mailing lists > Public > public-html@w3.org > June 2007

Re: Note on terminology: Attribute types

From: Michael A. Puls II <shadow2531@gmail.com>
Date: Tue, 12 Jun 2007 21:12:08 -0400
Message-ID: <6b9c91b20706121812j19fbaa95r199f2d0266781be8@mail.gmail.com>
To: public-html@w3.org

On 6/12/07, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> Henrik Dvergsdal wrote:
> > I think we will gain precision by using consistent, spec-wide
> > terminology to distinguish between DOM attributes
> I've usually seen these called "properties", precisely to distinguish them
> from
> element attributes...  Of course they're "attributes" in the IDL... :(

Not too big of a deal to me, but to me:

<div test="me">
test is an attribute.

div.test = "me";

test is a property

div {
    test: "me";

test is a css property.

When DOM is mentioned, the first language I associate with it is

Because of that, despite the IDL use of  "attribute" and other
languages, I personally would rather refer to DOM attributes as
properties and refer to Element attributes as attributes.

However, I don't think that'll fly with everyone, so using DOM
attribute and Element attribute  could clear things up.  (I understand
what a content attribute is referring to, but Element attribute sounds
much better.)

Received on Wednesday, 13 June 2007 01:12:10 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:22 UTC