W3C home > Mailing lists > Public > public-device-apis@w3.org > October 2009

Re: What does it all hang off of?

From: Peter-Paul Koch <pp.koch@gmail.com>
Date: Wed, 7 Oct 2009 11:38:32 +0200
Message-ID: <21e4a1280910070238u783534act1ce2e8c74e30a3e3@mail.gmail.com>
To: Anne van Kesteren <annevk@opera.com>
Cc: Jere.Kapyaho@nokia.com, Marcin.Hanclik@access-company.com, stewart.brodie@antplc.com, public-device-apis@w3.org
2009/10/7 Anne van Kesteren <annevk@opera.com>:
> On Wed, 07 Oct 2009 11:23:48 +0200, <Jere.Kapyaho@nokia.com> 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
http://www.quirksmode.org/about/
------------------------------------------------------------------
Received on Wednesday, 7 October 2009 09:39:06 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 14:53:39 UTC