Re: What does it all hang off of?

2009/10/7 Anne van Kesteren <>:
> On Wed, 07 Oct 2009 11:23:48 +0200, <> wrote:
>> I don't really see much utility in distinguishing APIs that use some
>> hardware capability (like camera) from those that use "software"
>> capabilities (like contacts), although I could live with it. But neither
>> of these broad groups should be accessible from navigator, as it is
>> conceptually wrong.
> We already crossed that bridge long ago, in my opinion. The Navigator object
> is used for these kind of APIs and creating inconsistency with that seems
> misguided. You are not starting with a blank slate here. The Web Platform
> has a lot of history and creating yet another fork in the little logic it
> has so far seems bad for authors. Everyone always thinks they can do it
> right this time around, but I've yet to see that happen.

Agreed. navigator has been around for thirteen years or more, and
that's enough reason to continue using it. Paving cowpaths etc.

There are more illogical bits in the current browser implementations;
for instance, screen (which contains the width and height of the
computer screen) is a property of window. Strictly speaking that's
nonsense: the screen is not part of the window; it's the other way
around. But everybody's accepted it and is using it.

I'm willing to consider another hook point than navigator, provided
*it's already there*. The only alternative is window, but that's worse
than navigator because it makes even less sense.

We MUST NOT pollute the JavaScript global object even more than it is today.

ppk, freelance front-end consultant,
agent, and trainer

Received on Wednesday, 7 October 2009 09:39:06 UTC