W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2008

Re: [WebIDL] ES3.1 'flexible' attribute and 'delete' semantics

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Sat, 16 Aug 2008 01:07:58 -0700
Message-ID: <c9e12660808160107n400afc18p58583b98a9b4023b@mail.gmail.com>
To: "Web Applications Working Group WG" <public-webapps@w3.org>
On Thu, Aug 14, 2008 at 4:59 PM, Cameron McCormack <cam@mcc.id.au> wrote:
> Hi Garrett.

I missed a couple of points in my last mail.

> Travis Leithead:
>> > My question, once again, is whether WebIDL will define exactly how
>> > to translate the behavior of operators like delete into the
>> > JavaScript language binding for DOM objects.
> Garrett Smith:
>> That isn't a question. This is: Why does WebIDL need to define how
>> delete works on Document.prototype.getElementById? There is no
>> guarantee that Document will be an object, or that Document.prototype
>> will be the [[Prototype]] of document. Nor should there be.
> Web IDL wouldn't specifically say "delete works on
> Document.prototype.getElementById", but I think it should say how these
> kinds of objects (Document, Document's [[Prototype]]) behave, e.g.
> "a property on an interface prototype object that corresponds to an IDL
> operation has attributes { DontEnum }".

Document's [[Prototype]] would usually be Function or Object,
depending on the browser. Either way, it wouldn't really matter. If
you think it does matter, please explain how. Are you confusing
Document's [[Prototype]] with the Document.prototype property, BTW?

Regardless, it shouldn't matter to anyone.

> JS libraries do exploit the
> prototype chain to add methods etc.,

Are you talking about Prototype? They're somewhat inclined towards
changing that. There have been a lot of problems with that.

> so it would be good if they could
> do this with the blessing of a spec, rather than de factor behaviour.

Standardizing this behavior would only encourage them. It is a
horrible way to design an API. The fact that it doesn't work doesn't
mean it needs standardizing. The approach itself is inherently bad.

> Given MS's interest in following Web IDL,

Why would Microsoft be concerned with that?

There are thousands of bugs in IE that are important and critical. I
see MS priorities are: "Disabled OPTION" - closed by design.
"Implement DontEnum" - WONTFIX. And WebIDL - worth following.

WebIDL is extends the boundaries of defining interface to address
browser incompatibility issues that do not help solve real problems.
It tries to specify more detail than is necessary for "Interface
Definition Language."

>  there's a chance we could get
> all four browsers doing the same thing, too.

All four browsers. You must mean Netfront, Obigo, iCab, and Opera.
All four of these browsers doing the same thing might seem like a good
idea (in a fuzzy way), however doing "what" same thing are we talking
about? That would be the determining factor. If that thing were
beneficial or harmful.

Or we could stick with interface definitions.


> --
> Cameron McCormack ≝ http://mcc.id.au/
Received on Saturday, 16 August 2008 08:08:33 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:11 UTC