ISSUE-44: What do APIs hang off of?


What do APIs hang off of?

APIs — General
Raised by:
Robin Berjon
Opened on:
one issue we have with APIs is also how they are exposed. Say for
instance that the Contacts API has a basic interface providing access
to the rest of the functionality called "Contacts". We could:

1) Make it available as a constructor:
2) Make it available as an object already instantiated in the global
3) Make a way of requesting that an API be "loaded"
4) Use an object to provide access to all the device APIs
5) Hang it off from a markup element
6) Hang it off from an event object

Discussion thread starting at:
which lead to the following observations:
• window.navigator has been used many times for this type of APIs
• a possible window.navigator.device host for the DAP APIs, with the start of a spec at
• the need to look at it on an API-per-API basis, taking into account the security model, the activation model (e.g. from an event, a markup element), the locking model wrt Web workers
• the need to watch for clashes in existing Web content
(the latter two points having been raised by Hixie
Related Actions Items:
No related actions
Related emails:
  1. Draft minutes 2010-01-13 (from on 2010-01-13)
  2. Draft minutes, 2009-12-16 (from on 2009-12-16)
  3. Re: ISSUE-44 (apiHanging): What do APIs hang off of? [APIs â General] (from on 2009-11-12)
  4. Re: What does it all hang off of? (from on 2009-11-12)
  5. ISSUE-44 (apiHanging): What do APIs hang off of? [APIs — General] (from on 2009-11-12)

Related notes:

new thread on that topic:

Dominique Hazaël-Massieux, 16 Dec 2009, 16:18:35

Display change log ATOM feed

Anssi Kostiainen <>, Chair, Fuqiao Xue <>, Staff Contact
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <>.
$Id: index.php,v 1.325 2014-09-10 21:42:02 ted Exp $