merge heads
authorAnssi Kostiainen <anssi.kostiainen@nokia.com>
Mon, 03 Sep 2012 18:02:09 +0300
changeset 2165583626294f6
parent 215 53f4bfeee4fe
parent 212 9e85394e6ede
child 217 9a487c1666da
merge heads
api-design/index.html
battery/tests/submissions/anssik/manifest.txt
discovery-api/FPWD.html
discovery-api/Overview.html
discovery-api/Overview.src.html
gallery/Overview.html
gallery/index.html
humidity/Overview.html
light/Overview.html
light/tests/submissions/marcosc/DeviceLight_tests.js
light/tests/submissions/marcosc/index.html
light/tests/submissions/marcosc/manifest.txt
media-stream-capture/scenarios.html
proximity/FPWD.html
proximity/Overview.html
proximity/tests/submissions/marcos/DeviceProximityEvent_tests.js
proximity/tests/submissions/marcos/UserProximityEvent_tests.js
proximity/tests/submissions/marcos/index.html
proximity/tests/submissions/marcos/manifest.txt
temperature/Overview.html
wi-addendum-local-services/Example_device_and_service_description_pages/Slide1.png
wi-addendum-local-services/Example_device_and_service_description_pages/Slide2.png
wi-addendum-local-services/Example_scenario_1/Slide1.png
wi-addendum-local-services/Example_scenario_1/Slide2.png
wi-addendum-local-services/Example_scenario_1/Slide3.png
wi-addendum-local-services/Example_scenario_2/Slide1.png
wi-addendum-local-services/Example_scenario_2/Slide2.png
wi-addendum-local-services/Example_scenario_2/Slide3.png
wi-addendum-local-services/Example_scenario_2/Slide4.png
wi-addendum-local-services/Overview.html
     1.1 --- a/api-design/index.html	Mon Sep 03 15:35:05 2012 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,105 +0,0 @@
     1.4 -<!DOCTYPE html>
     1.5 -<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>
     1.6 -  <head>
     1.7 -    <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
     1.8 -    <title>API Design Best Practices</title>
     1.9 -    <script class='remove'>
    1.10 -      var respecConfig = {
    1.11 -          specStatus: "ED",
    1.12 -          shortName:  "api-design",
    1.13 -          editors: [
    1.14 -                {   name:       "Robin Berjon",
    1.15 -                    url:        "http://berjon.com/",
    1.16 -                    company:    "Robineko",
    1.17 -                    companyURL: "http://robineko.com/" }
    1.18 -          ],
    1.19 -          edDraftURI:   "http://w3c-test.org/dap/api-design/",
    1.20 -          copyrightStart: 2011,
    1.21 -          noIDLIn:      true,
    1.22 -          // wg:           "Web Applications (WebApps) Working Group",
    1.23 -          // wgURI:        "http://www.w3.org/2008/webapps/",
    1.24 -          // wgPublicList: "public-webapps",
    1.25 -          // wgPatentURI:  "http://www.w3.org/2004/01/pp-impl/42538/status",
    1.26 -          wg:           "Device APIs Working Group",
    1.27 -          wgURI:        "http://www.w3.org/2009/dap/",
    1.28 -          wgPublicList: "public-device-apis",
    1.29 -          wgPatentURI:  "http://www.w3.org/2004/01/pp-impl/43696/status",
    1.30 -      };
    1.31 -    </script>
    1.32 -    <script src='http://respec.specifiction.com/js/profiles/w3c-common.js' class='remove'></script>
    1.33 -  </head>
    1.34 -  <body>
    1.35 -    <section id='abstract'>
    1.36 -      <p>
    1.37 -        This document captures best practices in designing APIs that fit well into the Web platform as
    1.38 -        a whole, using WebIDL [[!WEBIDL]].
    1.39 -      </p>
    1.40 -    </section>
    1.41 -    <section id='sotd'>
    1.42 -      <p>
    1.43 -        As it currently stands, this document is nothing more than a proposal from its editor, with no
    1.44 -        backing implied or otherwise from any other party.
    1.45 -      </p>
    1.46 -    </section>
    1.47 -    <section>
    1.48 -      <h2>Introduction</h2>
    1.49 -      <p>
    1.50 -        Over a relatively short period of time the number of different APIs being created for use on the
    1.51 -        Web has grown at a sustained pace. In working on these interfaces, many in the community discuss
    1.52 -        the benefits of certain approaches over others and reach agreement as to best practices when
    1.53 -        facing a given problem.
    1.54 -      </p>
    1.55 -      <p>
    1.56 -        Keeping track of all these gems is however difficult given the volume of work being carried on
    1.57 -        in parallel and the sometimes disjointed nature of the groups involved. As a result, it can take
    1.58 -        a long while and many arguments repeated almost identically before a discovered best practice
    1.59 -        becomes common.
    1.60 -      </p>
    1.61 -      <p>
    1.62 -        The goal of this document is to capture such ideas as they appear and accrete them over time so as
    1.63 -        to constitute a repository of knowledge on this topic. As a guide it does not however endeavour to
    1.64 -        supplant editors' brains in making decisions as to how to design their APIs, and consequently one
    1.65 -        must keep in mind that the reasoning behind a specific recommendation is often more important than
    1.66 -        its result. Furthermore, in some cases there may not be a single consensual best approach, and 
    1.67 -        editors will need to understand the tradeoffs involved in order to pick what works for them amongst
    1.68 -        a set of options.
    1.69 -      </p>
    1.70 -    </section>
    1.71 -    <section>
    1.72 -      <h2>WebIDL Legacy Features</h2>
    1.73 -      <p>
    1.74 -        ...
    1.75 -      </p>
    1.76 -    </section>
    1.77 -    <section>
    1.78 -      <h2>Exceptions</h2>
    1.79 -      <p>
    1.80 -        ...
    1.81 -      </p>
    1.82 -    </section>
    1.83 -    <section>
    1.84 -      <h2>When to use NoInterfaceObject</h2>
    1.85 -      <p>
    1.86 -        ...
    1.87 -      </p>
    1.88 -    </section>
    1.89 -    <section>
    1.90 -      <h2>Using Dictionaries</h2>
    1.91 -      <p>
    1.92 -        ...
    1.93 -      </p>
    1.94 -    </section>
    1.95 -    <section>
    1.96 -      <h2>Specifying Callbacks</h2>
    1.97 -      <p>
    1.98 -        ...
    1.99 -      </p>
   1.100 -    </section>
   1.101 -    <section class='appendix'>
   1.102 -      <h2>Acknowledgements</h2>
   1.103 -      <p>
   1.104 -        Many thanks to Cameron McCormack, Marcos Càceres, and Andreas Gal for their input.
   1.105 -      </p>
   1.106 -    </section>
   1.107 -  </body>
   1.108 -</html>
     2.1 --- a/contacts/Overview.html	Mon Sep 03 15:35:05 2012 +0200
     2.2 +++ b/contacts/Overview.html	Mon Sep 03 18:02:09 2012 +0300
     2.3 @@ -1,213 +1,136 @@
     2.4  <!DOCTYPE html>
     2.5  <html>
     2.6    <head>
     2.7 -    <title>Contacts API</title>
     2.8 +    <title>Pick Contacts Intent</title>
     2.9      <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
    2.10 -    <script type="text/javascript" src='http://dev.w3.org/2009/dap/ReSpec.js/js/respec.js' class='remove'></script>
    2.11 -    <script type="text/javascript" src='http://dev.w3.org/2009/dap/ReSpec.js/js/sh_main.min.js' class='remove'></script>
    2.12 +    <script type="text/javascript" src='https://www.w3.org/Tools/respec/respec-w3c-common' class='remove' async></script>
    2.13      <script type="text/javascript" class='remove'>
    2.14 -            var respecConfig = {
    2.15 -                  specStatus: "ED",
    2.16 -                  shortName: "contacts-api",
    2.17 -                  editors: [{
    2.18 -                            name: "Richard Tibbett", 
    2.19 -                            url: "http://richt.me", 
    2.20 -                            company: "Opera Software ASA", 
    2.21 -                            companyURL: "http://www.opera.com"}],
    2.22 -                  previousPublishDate:  "2011-06-16",
    2.23 -                  lcEnd:  "2011-07-14",
    2.24 -                  previousMaturity: "LC",
    2.25 -                  edDraftURI: "http://w3c-test.org/2009/dap/contacts/",
    2.26 -                  noIDLIn:  true,
    2.27 -              };
    2.28 +        var respecConfig = {
    2.29 +              specStatus: "ED",
    2.30 +              shortName: "contacts-api",
    2.31 +              editors: [{
    2.32 +                        name: "Richard Tibbett", 
    2.33 +                        url: "http://richt.me", 
    2.34 +                        company: "Opera Software ASA", 
    2.35 +                        companyURL: "http://www.opera.com"},
    2.36 +                        {name: "Robin Berjon",
    2.37 +                        url: "http://berjon.com/", 
    2.38 +                        company: "Robineko", 
    2.39 +                        companyURL: "http://robineko.com/"}
    2.40 +                      ],
    2.41 +              // previousPublishDate:  "2011-06-16",
    2.42 +              // lcEnd:  "2011-07-14",
    2.43 +              // previousMaturity: "LC",
    2.44 +              edDraftURI: "http://w3c-test.org/2009/dap/contacts/",
    2.45 +              wg:           "Device APIs Working Group",
    2.46 +              wgURI:        "http://www.w3.org/2009/dap/",
    2.47 +              wgPublicList: "public-device-apis",
    2.48 +              wgPatentURI:  "http://www.w3.org/2004/01/pp-impl/43696/status"
    2.49 +          };
    2.50      </script>
    2.51 -    <script type="text/javascript" src='http://dev.w3.org/2009/dap/common/config.js' class='remove'></script>
    2.52 -    <style type="text/css">
    2.53 -      /* ReSpec.js CSS optimizations (Richard Tibbett) */
    2.54 -      div.example {
    2.55 -          border-top: 1px solid #ff4500;
    2.56 -          border-bottom: 1px solid #ff4500;
    2.57 -          background: #fff;
    2.58 -          padding:    1em;
    2.59 -          font-size: 0.9em;
    2.60 -          margin-top: 1em;
    2.61 -      }
    2.62 -      div.example::before {
    2.63 -          content:    "Example";
    2.64 -          display:    block;
    2.65 -          width:      150px;
    2.66 -          background: #ff4500;
    2.67 -          color:  #fff;
    2.68 -          font-family:    initial;
    2.69 -          padding:    3px;
    2.70 -          padding-left: 5px;
    2.71 -          font-weight:    bold;
    2.72 -          margin: -1em 0 1em -1em;
    2.73 -      }
    2.74 -
    2.75 -      /* Clean up pre.idl */
    2.76 -      pre.idl::before {
    2.77 -          font-size:0.9em;
    2.78 -      }
    2.79 -
    2.80 -      /* Add better spacing to sections */
    2.81 -      section, .section {
    2.82 -          margin-bottom: 2em;
    2.83 -      }
    2.84 -
    2.85 -      /* Reduce note & issue render size */
    2.86 -      .note, .issue {
    2.87 -          font-size:0.8em;
    2.88 -      }
    2.89 -
    2.90 -      /* Add addition spacing to <ol> and <ul> for rule definition */
    2.91 -      ol.rule li, ul.rule li {
    2.92 -          padding:0.2em;
    2.93 -      }
    2.94 -      /*
    2.95 -      IDL wrapping fix
    2.96 -      http://perishablepress.com/press/2010/06/01/wrapping-content/
    2.97 -
    2.98 -      [RB] This isn't a fix, it kills indentation!
    2.99 -
   2.100 -      pre.idl {
   2.101 -          white-space: pre;
   2.102 -          white-space: pre-wrap;
   2.103 -          white-space: pre-line;
   2.104 -          white-space: -pre-wrap;
   2.105 -          white-space: -o-pre-wrap;
   2.106 -          white-space: -moz-pre-wrap;
   2.107 -          white-space: -hp-pre-wrap;
   2.108 -          word-wrap: break-word;
   2.109 -      }
   2.110 -      */
   2.111 -    </style>
   2.112    </head>
   2.113 -
   2.114    <body>
   2.115      <section id='abstract'>
   2.116        <p>
   2.117 -        The Contacts API defines the high-level interfaces required to obtain read access to a user's unified
   2.118 -        address book.
   2.119 +        The Pick Contacts Intent defines a Web Intent [[!WEBINTENTS]] that enables access to a user's
   2.120 +        address book service from inside a Web application. It defines both an Intent action/type
   2.121 +        pair that selects this operation, and the format of the contacts data that is returned
   2.122 +        by services implementing this specification
   2.123        </p>
   2.124 -      <p>
   2.125 -        This API includes the following key interfaces:
   2.126 -      </p>
   2.127 -      <ul>
   2.128 -        <li>A <a>Contacts</a> interface, which provides the method
   2.129 -        needed to access a user's unified address book.</li>
   2.130 -        <li>A <a>Contact</a> interface, which captures the individual
   2.131 -        contact information that can be returned following a successful read operation.</li>
   2.132 -      </ul>
   2.133      </section>
   2.134  
   2.135      <section id='sotd'>
   2.136        <p>
   2.137 -        This document represents the early consensus of the group on the scope and features of the proposed
   2.138 -        Contacts API. Issues and editors note in the document highlight some of the points on which the group is
   2.139 -        still working and would particularly like to get feedback.
   2.140 +        This document builds atop previous versions that were pure JavaScript APIs and turns them
   2.141 +        into an API built using Web Intents, while maintaining the data format which the JavaScript
   2.142 +        APIs had defined.
   2.143        </p>
   2.144      </section>
   2.145  
   2.146      <section class="informative">
   2.147        <h2>Introduction</h2>
   2.148        <p>
   2.149 -        Every operating system and a large number of web-based service providers have different ways of
   2.150 +        Every operating system and a large number of Web-based service providers have different ways of
   2.151          representing address book information. Most users are required to maintain a plurality of contact lists
   2.152 -        which leads to multiple copies of address book data. This in turn
   2.153 -        often leads to disjoint and inconsistent information being stored across a user's
   2.154 -        address book providers.
   2.155 +        which leads to multiple copies of address book data. This in turn often leads to disjoint and inconsistent
   2.156 +        information being stored across a user's address book providers.
   2.157        </p>
   2.158        <p>
   2.159          When sharing contact data with third parties users are, more often than not, required to hand over access to
   2.160          their whole address book. Users are implicitly required to trust third parties with all of their data
   2.161          when, in reality, the user may only wish, or need, to share a subset of their address book information so
   2.162 -        that an application can fulfill its purpose.
   2.163 +        that an application can fulfil its purpose. When sharing of only a subset of a user's address book is
   2.164 +        possible, it often requires the user to type the information into a form herself rather than having it
   2.165 +        extracted from one of her address book services.
   2.166        </p>
   2.167        <p>
   2.168 -        This specification defines the concept of a user's unified address book - where address book data may
   2.169 -        be sourced from a plurality of sources - both online and locally. It then defines the
   2.170 -        interfaces through which third party applications can access a user's unified address book, with explicit user
   2.171 -        permission and filtering. The focus of this data sharing is on making the user aware of the data that
   2.172 -        they will share and putting them at the centre of the data sharing process; free to select both the
   2.173 -        extent to which they share their address book information and the ability to restrict which pieces of
   2.174 -        information related to which contact gets shared.
   2.175 +        This specification enables a Web application to have access to a selected subset of a user's address book,
   2.176 +        obtained from arbitrary services not known to the Web application. The interactions, brokered using
   2.177 +        Web Intents [[!WEBINTENTS]] are designed in order to maximise the user's security and privacy.
   2.178 +        Address book data may be sourced from a plurality of sources — both online and local to the user's device
   2.179 +        — so long as those sources are registered as Intent services with the user agent. It defines a common
   2.180 +        format which services use to provide data to Web applications in a consistent and interoperable manner.
   2.181 +      </p>
   2.182 +      <p>
   2.183 +        The expectation is that data sharing happens with explicit user permission and filtering. The focus of 
   2.184 +        this data sharing is on making the user aware of the data that they will share and putting them at the 
   2.185 +        centre of the data sharing process; free to select both the extent to which they share their address 
   2.186 +        book information and the ability to restrict which pieces of information related to which contact gets shared.
   2.187        </p>
   2.188        <p>
   2.189          A set of <a href="#security-and-privacy-considerations">Security and Privacy Considerations</a> are
   2.190 -        presented for the discretion of both implementers of the Contacts API and recipients of contact
   2.191 -        information (i.e. web pages). This specification provides a set of non-normative 
   2.192 +        presented for the discretion of both implementers of Pick Contacts Intent services and recipients of contact
   2.193 +        information (i.e. Web applications). This specification provides a set of non-normative 
   2.194          <a href="#user-interaction-guidelines">User Interaction Guidelines</a> demonstrating an example user experience
   2.195          that is compliant with the Security and Privacy Considerations described herein.
   2.196        </p>
   2.197        <p>
   2.198 -        This specification also provides informative examples illustrating how to 
   2.199 -        <a href="#adding-and-updating-contacts">add and update contact information</a>, utilizing existing web platform
   2.200 -        APIs.
   2.201 -      </p>
   2.202 -      <p>
   2.203          The following code illustrates how to obtain contact information from a user's address book:
   2.204        </p>
   2.205 -      <pre class="example sh_javascript_dom">
   2.206 -        function success (contacts) {
   2.207 -            // do something with resulting contact objects
   2.208 -            for (var i in contacts) alert(contacts[i].name);
   2.209 -            // ...
   2.210 +      <pre class="example highlight">
   2.211 +        var intent = new Intent({ action:   "http://webintents.org/pick",
   2.212 +                                  type:     "http://w3.org/type/contact",
   2.213 +                                  extras:   { fields: ["displayName", "emails"] }});
   2.214 +        navigator.startActivity(intent, contactsOK, contactsFail);
   2.215 +
   2.216 +        function contactsOK (contacts) {
   2.217 +            // iterate over the array of contacts to do something useful with them
   2.218          }
   2.219 -
   2.220 -        function error (err) {
   2.221 -            // do something with resulting error
   2.222 -            alert(err.code);
   2.223 -            // ...
   2.224 +        function contactsFail (err) {
   2.225 +            // display an error to the user
   2.226          }
   2.227 -
   2.228 -        // Perform an address book search. Obtain the 'name' and 'emails' properties 
   2.229 -        // and initially filter the list to Contact records containing 'Bob':
   2.230 -        navigator.contacts.find(  ['name', 'emails'], success, error, { filter: 'Bob', multiple: true } );
   2.231        </pre>
   2.232 +      <p>
   2.233 +        When the above code is run, the user would typically be prompted by her user agent to select
   2.234 +        a service able to pick a contact (there may be several such services, if she has multiple address
   2.235 +        book sources). Upon selecting a service, she will be presented with an interface enabling her
   2.236 +        to choose what contact information is returned to the Web application. Upon completing her
   2.237 +        choice, the contacts data would be returned to the Web application in the <code>contactsOK</code>
   2.238 +        callback.
   2.239 +      </p>
   2.240      </section>
   2.241  
   2.242      <section id='conformance'>
   2.243        <p>
   2.244 -        This specification defines conformance criteria that apply to a single product: the 
   2.245 -        <dfn id="ua">user agent</dfn> that implements the interfaces that it contains.
   2.246 +        There is only one single conformance requirement placed upon the <dfn>user agent</dfn>
   2.247 +        product: a <a>user agent</a> MUST support Web Intents [[!WEBINTENTS]].
   2.248        </p>
   2.249        <p>
   2.250 -        Implementations that use ECMAScript to implement the APIs defined in this specification must implement
   2.251 -        them in a manner consistent with the ECMAScript Bindings defined in the Web IDL specification
   2.252 -        [[!WEBIDL]], as this specification uses that specification and terminology.
   2.253 +        The conformance criteria in this specification apply to a single product: the
   2.254 +        <dfn>contact service</dfn> which exposes a Web Intent service that
   2.255 +        handles Pick Contact Intents as defined in this specification.
   2.256        </p>
   2.257        <p>
   2.258 -        A conforming implementation is required to implement all fields defined in this specification.
   2.259 +        The data returned by the <a>contact service</a> is described in this specification using [[!WEBIDL]].
   2.260 +        When this data is provided using JavaScript, then the <a>contact service</a> MUST do so in a manner
   2.261 +        consistent with the ECMAScript Bindings defined in the Web IDL specification.
   2.262        </p>
   2.263 -
   2.264 -      <section>
   2.265 -        <h2>Terminology</h2>
   2.266 -        <p>
   2.267 -          The terms <dfn>document base URL</dfn>, <dfn>browsing context</dfn>, <dfn>event handler attribute</dfn>, 
   2.268 -          <dfn>event handler event type</dfn>, <dfn>task</dfn>, <dfn>task source</dfn> and <dfn>task queues</dfn> 
   2.269 -          are defined by the HTML5 specification [[!HTML5]].
   2.270 -        </p>
   2.271 -        <p>
   2.272 -          The <a>task source</a> used by this specification is the <dfn>device task source</dfn>.
   2.273 -        </p>
   2.274 -        <p>
   2.275 -          To <dfn>dispatch a <code>success</code> event</dfn> means that an event with the name
   2.276 -          <code>success</code>, which does not bubble and is not cancellable, and which uses the
   2.277 -          <code>Event</code> interface, is to be dispatched at the <a>ContactFindCB</a> object.
   2.278 -        </p>
   2.279 -        <p>
   2.280 -          To <dfn>dispatch an <code>error</code> event</dfn> means that an event with the name
   2.281 -          <code>error</code>, which does not bubble and is not cancellable, and which uses the <code>Event</code>
   2.282 -          interface, is to be dispatched at the <a>ContactErrorCB</a> object.
   2.283 -        </p>
   2.284 -      </section>
   2.285      </section>
   2.286  
   2.287 -    <section>
   2.288 +    <section class="informative">
   2.289        <h2>Security and Privacy Considerations</h2>
   2.290        <p>
   2.291 -        The API defined in this specification can be used to find contact information from a user's address
   2.292 +        The Intent defined in this specification can be used to find contact information from a user's address
   2.293          books. This discloses information related to a user's contacts such as their phone numbers, email
   2.294          addresses and other personally identifying information. The distribution of this information could
   2.295          potentially compromise the user's privacy, or the user's contacts' privacy. A conforming implementation
   2.296 @@ -215,36 +138,23 @@
   2.297          ensure that no contact information is retrievable without the user's express permission.
   2.298        </p>
   2.299        <section>
   2.300 -        <h2>Privacy considerations for implementers of the Contacts API</h2>
   2.301 +        <h2>Privacy considerations for implementers of the Pick Contacts Intent</h2>
   2.302          <p>
   2.303 -          A <a class="product-ua" href="#ua">user agent</a> should not provide contact information to Web sites without the express
   2.304 -          permission of the user. A <a>user agent</a> should acquire permission from the user, unless
   2.305 -          they have prearranged trust relationships with users, as described below. The user interface should
   2.306 -          include the <a>document base URL</a>. Those permissions that are acquired through the user interface
   2.307 -          and that are preserved beyond the current browsing session (i.e. beyond the time when the <a>browsing
   2.308 -          context</a> is navigated to another URL) should be revocable and a <a>user agent</a> should respect permission revocation.
   2.309 +          A <a>contact service</a> should not provide contact information to Web sites without the express
   2.310 +          permission of the user. Obtaining the user's express permission to access a set of contacts does 
   2.311 +          not imply that the user has granted permission for the same Web site to access more contact information.
   2.312 +          A <a>contact service</a> should take great care to ensure that the user can clearly see which information
   2.313 +          is about to be shared, and must not share more information than has been requested by the Web application.
   2.314          </p>
   2.315          <p>
   2.316 -          Obtaining the user's express permission to access one API method does not imply the user has granted
   2.317 -          permission for the same Web site to access other methods provided by this API, or to access the same
   2.318 -          method with a different set of arguments, as part of the same permission context. If a user has
   2.319 -          expressed permission for an implementation to, e.g. find a set of existing contacts, the implementation
   2.320 -          should seek the user's express permission if and when any additional <code>find</code> function is called
   2.321 -          on this API.
   2.322 -        </p>
   2.323 -        <p>
   2.324 -          A <a>user agent</a> may have prearranged trust relationships that do not require such user
   2.325 -          interfaces. For example, while a Web browser will present a user interface when a Web site performs an
   2.326 -          address book request, a Widget [[WIDGETS]] runtime may have a prearranged, delegated security
   2.327 -          relationship with the user and, as such, a suitable alternative security and privacy mechanism with
   2.328 -          which to authorize the retrieval of contact information.
   2.329 +          A <a>user agent</a> may have prearranged trust relationships with a specific <a>contact service</a> 
   2.330 +          that do not require such user interaction.
   2.331          </p>
   2.332        </section>
   2.333 -
   2.334 -      <section class="informative">
   2.335 +      <section>
   2.336          <h2>Privacy considerations for recipients of contact information</h2>
   2.337          <p>
   2.338 -          Web sites operators that retrieve contacts information using this API are denoted as recipients
   2.339 +          Web sites operators that retrieve contacts information using this Intent are denoted as recipients
   2.340            below.
   2.341          </p>
   2.342          <p>
   2.343 @@ -254,7 +164,7 @@
   2.344          <p>
   2.345            Recipients should dispose of contact information once that task is completed, unless expressly
   2.346            permitted to retain it by the user. Recipients should also take measures to protect this information
   2.347 -          against unauthorized access. If contact information is stored, users should be allowed to update and
   2.348 +          against unauthorised access. If contact information is stored, users should be allowed to update and
   2.349            delete this information.
   2.350          </p>
   2.351          <p>
   2.352 @@ -264,7 +174,7 @@
   2.353          </p>
   2.354          <p>
   2.355            Recipients should clearly and conspicuously disclose the fact that they are collecting contact data,
   2.356 -          the purpose for the collection, how long the data is retained, how the data is secured, how the data is
   2.357 +          the purpose of the collection, how long the data is retained, how the data is secured, how the data is
   2.358            shared if it is shared, how users can access, update and delete the data, and any other choices that
   2.359            users have with respect to the data. This disclosure should include an explanation of any exceptions to
   2.360            the guidelines listed above.
   2.361 @@ -272,228 +182,156 @@
   2.362          <p>
   2.363            Note that even if a user gives permission to share their contact information this can have serious
   2.364            privacy implications for those parties whose contacts are shared, as they may not wish such sharing to
   2.365 -          occur. This should be considered by web services when requesting and using such information.
   2.366 +          occur. This should be considered by Web applications when requesting and using such information.
   2.367          </p>
   2.368        </section>
   2.369 -      <section class='informative'>
   2.370 +      <section>
   2.371          <h2>Additional implementation considerations</h2>
   2.372          <p>
   2.373 -          Further to the requirements listed in the previous section, implementers of the Contacts API are
   2.374 +          Further to the requirements listed in the previous section, implementers of a <a>user agents</a> are
   2.375            also advised to consider the following aspects that can negatively affect the privacy of their users:
   2.376 -          in certain cases, users can inadvertently grant permission to the <a>user agent</a> to disclose their contacts
   2.377 +          in certain cases, users can inadvertently grant permission to disclose their contacts
   2.378            to Web sites. In other cases, the content hosted at a certain URL changes in such a way that the
   2.379            previously granted contact permissions no longer apply as far as the user is concerned. Or the users
   2.380            might simply change their minds.
   2.381          </p>
   2.382          <p>
   2.383            Predicting or preventing these situations is inherently difficult. Mitigation and in-depth defensive
   2.384 -          measures are an implementation responsibility and not prescribed by this specification. However, in
   2.385 -          designing these measures, implementers are advised to enable user awareness of contact sharing, and to
   2.386 -          provide easy access to interfaces that enable revocation of permissions that web applications have to
   2.387 -          access this API.
   2.388 +          measures are a <a>user agent</a>'s responsibility and not prescribed by this specification. However, in
   2.389 +          designing these measures, implementers are advised to enable user awareness of information sharing, and to
   2.390 +          provide easy access to user interfaces that enable revocation of permissions that Web applications have to
   2.391 +          access this Intent.
   2.392          </p>
   2.393        </section>
   2.394      </section>
   2.395  
   2.396      <section>
   2.397 -      <h2>API Description</h2>
   2.398 -
   2.399 +      <h2>Intent Description</h2>
   2.400 +      <p>
   2.401 +        The action for this Intent is <code>http://webintents.org/pick</code>.
   2.402 +      </p>
   2.403 +      <p>
   2.404 +        The type for this Intent is <code>http://w3.org/type/contact</code>.
   2.405 +      </p>
   2.406 +      <p>
   2.407 +        When a <a>contact service</a> is matched for delivery using these action and type, it
   2.408 +        MUST respond in one of two ways:
   2.409 +      </p>
   2.410 +      <ul>
   2.411 +        <li>
   2.412 +          If contacts have been successfully selected for delivery, then a successful payload is returned
   2.413 +          to the client (using <code>postResult()</code>) matching the data format defined below.
   2.414 +        </li>
   2.415 +        <li>
   2.416 +          If an error of any kind takes place in the service, then an error payload is returned (using
   2.417 +          <code>postFailure()</code>) matching the error data format defined below. The <a>contact service</a>
   2.418 +          MUST NOT treat the user selecting zero contacts or cancelling the service as error conditions.
   2.419 +        </li>
   2.420 +      </ul>
   2.421        <section>
   2.422 -        <h2><a>ServiceContacts</a> interface</h2>
   2.423 -        <p id="ta-aa" class="product-ua">
   2.424 -          The <a>ServiceContacts</a> interface is exposed on the <a class="externalDFN">Navigator</a> 
   2.425 -          object [[NAVIGATOR]]. Its goal is to provide an access point to the functionality in this
   2.426 -          specification.
   2.427 +        <h2>Intent Extras</h2>
   2.428 +        <p>
   2.429 +          The Pick Contact Intent can be instantiated with an <code>extras</code> field that adheres to the 
   2.430 +          following dictionary.
   2.431          </p>
   2.432 -        <dl title='[NoInterfaceObject] interface ServiceContacts' class='idl'>
   2.433 -          <dt>readonly attribute Contacts contacts</dt>
   2.434 -          <dd>The object through which the contacts functionality can be accessed.</dd>
   2.435 -        </dl>
   2.436 -        <div class='idl' title='Navigator implements ServiceContacts'></div>
   2.437 +        <section>
   2.438 +          <h2>The <a>ContactIntentExtras</a> dictionary</h2>
   2.439 +          <p>
   2.440 +            The <a>ContactIntentExtras</a> dictionary describes the options that can be applied to contact searching.
   2.441 +          </p>
   2.442 +          <dl title='dictionary ContactIntentExtras' class='idl'>
   2.443 +            <dt>DOMString? search</dt>
   2.444 +            <dd>
   2.445 +              A string which provides a hint to the <a>contact service</a> to facilitate contacts selection by the user.
   2.446 +              The exact manner in which this hint is exploited is entirely up to the <a>contact service</a>.
   2.447 +            </dd>
   2.448 +            <dt>unsigned long? limit</dt>
   2.449 +            <dd>
   2.450 +              By default a <a>contact service</a> MAY return as many contacts as the user selects. If <code>limit</code>
   2.451 +              is specified, the <a>contact service</a> MUST NOT return more than <code>limit</code> contacts. The
   2.452 +              <a>contact service</a> SHOULD enforce this limitation in the user interface that it exposes.
   2.453 +            </dd>
   2.454 +            <dt>DOMString[] fields</dt>
   2.455 +            <dd>
   2.456 +              An array of field names corresponding to the name of the fields in the <a>Contact</a> dictionary that
   2.457 +              the Web application is requesting from the <a>contact service</a>. The <a>contact service</a> MUST
   2.458 +              NOT return defined fields on the contact objects that it provides other than those present in this
   2.459 +              list. If a field name is provided that the <a>contact service</a> does not recognise as a field
   2.460 +              of the <a>Contact</a> dictionary, then it MUST ignore it.
   2.461 +            </dd>
   2.462 +          </dl>
   2.463 +        </section>
   2.464        </section>
   2.465 -
   2.466 +    </section>
   2.467 +    <section>
   2.468 +      <h2>Data Format</h2>
   2.469 +      <p>
   2.470 +        Upon successful invocation, the <a>contact service</a> MUST return an array of <a>Contact</a> dictionaries.
   2.471 +      </p>
   2.472        <section>
   2.473 -        <h2><a>Contacts</a> interface</h2>
   2.474 +        <h2>The <a>Contact</a> dictionary</h2>
   2.475          <p>
   2.476 -          The <a>Contacts</a> interface exposes a database of contact information that may be retrieved.
   2.477 -        </p>
   2.478 -        <p>
   2.479 -          Multiple contact groups can be represented within this unified address book by specifying consistent
   2.480 -          <a href='#widl-Contact-categories'><code>categories</code></a> values as part of individual 
   2.481 -          <a>Contact</a> objects. Multiple contact groups can be displayed by filtering on the required 
   2.482 -          <a href='#widl-Contact-categories'><code>categories</code></a> values via
   2.483 -          the <a>Contacts</a> <a href='#widl-Contacts-find-void-DOMStringArray-fields-ContactFindCB-successCB-ContactErrorCB-errorCB-ContactFindOptions-options'>find()</a> operation.
   2.484 -        </p>
   2.485 -
   2.486 -        <dl title='[NoInterfaceObject] interface Contacts' class='idl'>
   2.487 -          <dt>void find ()</dt>
   2.488 -          <dd>
   2.489 -            <p>
   2.490 -              Find contacts in the address book according to the <a>find contacts process</a> detailed
   2.491 -              below.
   2.492 -            </p>
   2.493 -            <p>
   2.494 -              This method takes two, three or four arguments. When called, it  starts the following 
   2.495 -              <dfn>find contacts process</dfn>:
   2.496 -            </p>
   2.497 -            <ol class="rule">
   2.498 -              <li>
   2.499 -                Let <var>successCallback</var> be the callback indicated by the method's second argument.
   2.500 -              </li>
   2.501 -              <li>
   2.502 -                Let <var>errorCallback</var> be the callback indicated by the method's third argument, if any, or null otherwise.
   2.503 -              </li>
   2.504 -              <li id="ta-ai" class="product-ua">If <var>successCallback</var> is null, then throw a TypeError (as defined in [[WEBIDL]]).</li>
   2.505 -              <li  class="product-ua" id="ta-ag">
   2.506 -                If there is a <a>task</a> from the <a>device task source</a> in one of the <a>task
   2.507 -                queues</a> (e.g. an existing <code>find()</code> operation is still pending a response), run these
   2.508 -                substeps:
   2.509 -                <ol>
   2.510 -                  <li>
   2.511 -                    If <var>errorCallback</var> is not null, let <var>error</var> be a <a>ContactError</a>
   2.512 -                    object whose code attribute has the value <code>PENDING_OPERATION_ERROR</code> and
   2.513 -                    queue a task to invoke <var>errorCallback</var> with <var>error</var> as its argument.
   2.514 -                  </li>
   2.515 -                  <li>Abort this operation.</li>
   2.516 -                </ol>
   2.517 -              </li>
   2.518 -              <li>
   2.519 -                Return, and run the remaining steps asynchronously.
   2.520 -              </li>
   2.521 -              <li>
   2.522 -                Let <var>results</var> be the array of <a>Contact</a> objects obtained by searching contacts in the address book
   2.523 -                according to the rules defined in  <a href='#contact-search-processing'>Contact Search Processing</a>,
   2.524 -                or null if the search has failed.
   2.525 -              </li>
   2.526 -              <li>
   2.527 -                If <var>results</var> is null, run these substeps:
   2.528 -                <ol>
   2.529 -                  <li>
   2.530 -                    If <var>errorCallback</var> is not null, let <var>error</var> be a <a>ContactError</a>
   2.531 -                    object whose code attribute has its value set according to the type of failure that occurred and
   2.532 -                    queue a task to invoke <var>errorCallback</var> with <var>error</var> as its argument.
   2.533 -                  </li>
   2.534 -                  <li>Abort this operation.</li>
   2.535 -                </ol>
   2.536 -              </li>
   2.537 -              <li>Queue a task to invoke <var>successCallback</var> with <var>results</var> as its argument.</li>
   2.538 -            </ol>
   2.539 -
   2.540 -            <dl class='parameters'>
   2.541 -              <dt>DOMString[] fields</dt>
   2.542 -              <dd>The <a>search qualifier</a>.</dd>
   2.543 -              <dt>ContactFindCB successCB</dt>
   2.544 -              <dd>Function to call when the asynchronous operation completes successfully.</dd>
   2.545 -              <dt>optional ContactErrorCB errorCB</dt>
   2.546 -              <dd>Function to call when the asynchronous operation fails.</dd>
   2.547 -              <dt>optional ContactFindOptions options</dt>
   2.548 -              <dd>The options to apply to the output of this method.</dd>
   2.549 -            </dl>
   2.550 -          </dd>
   2.551 -        </dl>
   2.552 -      </section>
   2.553 -
   2.554 -      <section>
   2.555 -        <h2><a>Contact</a> interface</h2>
   2.556 -        <p>
   2.557 -          The <a>Contact</a> interface captures the properties of a contact object. All properties included in this 
   2.558 -          interface have a corresponding definition in [[POCO-SCHEMA]], [[RFC2426]] (aka vCard), and [[OMA-CAB]], thereby
   2.559 -          allowing the API to be supported across implementations supporting these various contact formats.
   2.560 -        </p>
   2.561 -        <p id="ta-ac" class="product-ua">
   2.562 -          All <a>Contact</a> objects MUST include all attributes supported by the implementation, regardless 
   2.563 -          of whether these attributes have been assigned a <code>null</code> value or not. If a supported attribute has not been
   2.564 -          assigned a value by the user or the implementation, then this attribute MUST still be present in the
   2.565 -          resulting <a>Contact</a> object and MUST have a value of <code>null</code>.
   2.566 +          The <a>Contact</a> dictionary captures the properties of a contact object. All properties included in this 
   2.567 +          interface have a corresponding definition in [[POCO-SCHEMA]], [[RFC2426]] (also known as vCard), and 
   2.568 +          [[OMA-CAB]], thereby allowing the data format to be supported across implementations supporting these 
   2.569 +          various contact representations.
   2.570          </p>
   2.571          <p>
   2.572            Additional attributes MAY be included according to the provisions detailed in 
   2.573 -          <a href="#extended-contact-properties-and-parameters">Extended Contact Properties and Parameters</a>. If an
   2.574 -          extended attribute is supported by the current implementation and has not been assigned a value by the
   2.575 -          user or the implementation, then this extended attribute MUST still be present in the resulting
   2.576 -          <a>Contact</a> object and MUST have a value of <code>null</code>.
   2.577 +          <a href="#extended-contact-properties-and-parameters">Extended Contact Properties and Parameters</a>.
   2.578          </p>
   2.579 -
   2.580 -        <dl title='[NoInterfaceObject] interface Contact' class='idl'>
   2.581 -          <dt>readonly attribute DOMString id</dt>
   2.582 +        <dl title='dictionary Contact' class='idl'>
   2.583 +          <dt>DOMString id</dt>
   2.584            <dd>
   2.585 -            <p>
   2.586 -              A globally unique identifier for the given <a>Contact</a> object. 
   2.587 -            </p>
   2.588 -            <p>
   2.589 -              An implementation MUST maintain this globally unique identifier when a <a>Contact</a> is added
   2.590 -              to an address book.
   2.591 -            </p>
   2.592 +            A globally unique identifier for the given <a>Contact</a> object. 
   2.593            </dd>
   2.594 -          <dt>attribute DOMString? displayName</dt>
   2.595 +          <dt>DOMString? displayName</dt>
   2.596            <dd>
   2.597 -            <p>
   2.598 -              This attribute contains the name of this <a>Contact</a> in a form that is suitable for display 
   2.599 -              to the user.
   2.600 -            </p>
   2.601 +            This attribute contains the name of this <a>Contact</a> in a form that is suitable for display 
   2.602 +            to the user.
   2.603            </dd>
   2.604 -          <dt>attribute ContactName? name</dt>
   2.605 +          <dt>ContactName? name</dt>
   2.606            <dd>
   2.607 -            <p>
   2.608 -              This attribute represents the full name of this <a>Contact</a> indicated by the name components 
   2.609 -              associated with the <a>ContactName</a> object.
   2.610 -            </p>
   2.611 +            This attribute represents the full name of this <a>Contact</a> indicated by the name components 
   2.612 +            associated with the <a>ContactName</a> dictionary.
   2.613            </dd>
   2.614 -          <dt>attribute DOMString? nickname</dt>
   2.615 +          <dt>DOMString? nickname</dt>
   2.616            <dd>
   2.617 -            <p>
   2.618 -              This attribute contains the nickname (or a casual name) for this <a>Contact</a>.
   2.619 -            </p>
   2.620 +            This attribute contains the nickname (or a casual name) for this <a>Contact</a>.
   2.621            </dd>
   2.622 -          <dt>attribute ContactField[]? phoneNumbers</dt>
   2.623 +          <dt>ContactField[]? phoneNumbers</dt>
   2.624            <dd>
   2.625 -            <p>
   2.626 -              This attribute captures one or more phone numbers associated with this <a>Contact</a>.
   2.627 -            </p>
   2.628 +            This attribute captures one or more phone numbers associated with this <a>Contact</a>.
   2.629            </dd>
   2.630 -          <dt>attribute ContactField[]? emails</dt>
   2.631 +          <dt>ContactField[]? emails</dt>
   2.632            <dd>
   2.633 -            <p>
   2.634 -              This attribute represents one or more email addresses associated with this <a>Contact</a>.
   2.635 -            </p>
   2.636 +            This attribute represents one or more email addresses associated with this <a>Contact</a>.
   2.637            </dd>
   2.638 -          <dt>attribute ContactAddress[]? addresses</dt>
   2.639 +          <dt>ContactAddress[]? addresses</dt>
   2.640            <dd>
   2.641 -            <p>
   2.642 -              This attribute represents one or more physical addresses associated with this <a>Contact</a>.
   2.643 -            </p>
   2.644 +            This attribute represents one or more physical addresses associated with this <a>Contact</a>.
   2.645            </dd>
   2.646 -          <dt>attribute ContactField[]? ims</dt>
   2.647 +          <dt>ContactField[]? ims</dt>
   2.648            <dd>
   2.649 -            <p>
   2.650 -              This attribute represents one or more instant messaging identifiers associated with this
   2.651 -              <a>Contact</a>.
   2.652 -            </p>
   2.653 +            This attribute represents one or more instant messaging identifiers associated with this
   2.654 +            <a>Contact</a>.
   2.655            </dd>
   2.656 -          <dt>attribute ContactOrganization[]? organizations</dt>
   2.657 +          <dt>ContactOrganization[]? organizations</dt>
   2.658            <dd>
   2.659 -            <p>
   2.660 -              This attribute represents one or more organizations associated with this <a>Contact</a>.
   2.661 -            </p>
   2.662 +            This attribute represents one or more organisations associated with this <a>Contact</a>.
   2.663            </dd>
   2.664 -          <dt>attribute Date? birthday</dt>
   2.665 +          <dt>Date? birthday</dt>
   2.666            <dd>
   2.667 -            <p>
   2.668 -              This attribute contains birthday of this <a>Contact</a>.
   2.669 -            </p>
   2.670 -            <p>
   2.671 -              The year value MAY be set to 0000 when the age of the <a>Contact</a> is private or the year is not
   2.672 -              available.
   2.673 -            </p>
   2.674 +            This attribute contains birthday of this <a>Contact</a>. The <a>contact service</a> MAY
   2.675 +            set the year value to 0000 when the age of the <a>Contact</a> is private or the year is not
   2.676 +            available.
   2.677            </dd>
   2.678 -          <dt>attribute DOMString? note</dt>
   2.679 +          <dt>DOMString? note</dt>
   2.680            <dd>
   2.681 -            <p>
   2.682 -              This attribute contains the personal notes (free-text) for this <a>Contact</a> that is managed by the
   2.683 -              user of the address book.
   2.684 -            </p>
   2.685 +            This attribute contains the personal notes (free-text) for this <a>Contact</a> that is managed by the
   2.686 +            user of the address book.
   2.687            </dd>
   2.688 -          <dt>attribute ContactField[]? photos</dt>
   2.689 +          <dt>ContactField[]? photos</dt>
   2.690            <dd>
   2.691              <p>
   2.692                This attribute represents one or more photos associated with this <a>Contact</a>.
   2.693 @@ -504,679 +342,178 @@
   2.694                to provide inline data.
   2.695              </p>
   2.696              <p class="note">
   2.697 -              This attribute SHOULD NOT be used to send down arbitrary photos taken by this user,
   2.698 +              A <a>contact service</a> SHOULD NOT use this attribute to send down arbitrary photos taken by this user,
   2.699                but specifically profile photos of the contact suitable for display when describing the
   2.700                contact.
   2.701              </p>
   2.702            </dd>
   2.703 -          <dt>attribute DOMString[]? categories</dt>
   2.704 +          <dt>DOMString[]? categories</dt>
   2.705            <dd>
   2.706 -            <p>
   2.707 -              This attribute contains one or more user-defined categories/tags/labels associated with this
   2.708 -              <a>Contact</a>. e.g. "family", "favorite", "cryptozoologists".
   2.709 -            </p>
   2.710 +            This attribute contains one or more user-defined categories/tags/labels associated with this
   2.711 +            <a>Contact</a>. e.g. "family", "favourite", "cryptozoologists".
   2.712            </dd>
   2.713 -          <dt>attribute ContactField[]? urls</dt>
   2.714 +          <dt>ContactField[]? urls</dt>
   2.715            <dd>
   2.716              <p>
   2.717                This attribute represents one or more URLs associated with this <a>Contact</a> e.g. personal web page, 
   2.718                blog.
   2.719              </p>
   2.720 -            <p>
   2.721 -              The web resources MUST be specified using the <code>value</code> attribute of the
   2.722 -              <code>ContactField</code> object, and its <code>type</code> field may be set to "blog" or
   2.723 -              "profile".
   2.724 -            </p>
   2.725            </dd>
   2.726          </dl>
   2.727        </section>
   2.728  
   2.729        <section>
   2.730 -        <h2><a>ContactName</a> interface</h2>
   2.731 -
   2.732 +        <h2>The <a>ContactName</a> dictionary</h2>
   2.733          <p>
   2.734 -          The <a>ContactName</a> interface describes a contact's name.
   2.735 +          The <a>ContactName</a> dictionary describes a contact's name in detail.
   2.736          </p>
   2.737 -
   2.738 -        <dl title='[NoInterfaceObject] interface ContactName' class='idl'>
   2.739 -          <dt>attribute DOMString? familyName</dt>
   2.740 +        <dl title='dictionary ContactName' class='idl'>
   2.741 +          <dt>DOMString? familyName</dt>
   2.742            <dd>
   2.743 -            <p>
   2.744 -              This attribute contains the family name (also referred to as the last name) of this <a>Contact</a>.
   2.745 -            </p>
   2.746 +            This attribute contains the family name (also referred to as the last name) of this <a>Contact</a>.
   2.747            </dd>
   2.748 -          <dt>attribute DOMString? givenName</dt>
   2.749 +          <dt>DOMString? givenName</dt>
   2.750            <dd>
   2.751 -            <p>
   2.752 -              This attribute contains the given name (also referred to as the first name) of this <a>Contact</a>.
   2.753 -            </p>
   2.754 +            This attribute contains the given name (also referred to as the first name) of this <a>Contact</a>.
   2.755            </dd>
   2.756 -          <dt>attribute DOMString? middleName</dt>
   2.757 +          <dt>DOMString? middleName</dt>
   2.758            <dd>
   2.759 -            <p>
   2.760 -              This attribute contains the middle name of this <a>Contact</a>.
   2.761 -            </p>
   2.762 +            This attribute contains the middle name of this <a>Contact</a>.
   2.763            </dd>
   2.764 -          <dt>attribute DOMString? honorificPrefix</dt>
   2.765 +          <dt>DOMString? honorificPrefix</dt>
   2.766            <dd>
   2.767 -            <p>
   2.768 -              This attribute contains the honorific prefix (or title) of this <a>Contact</a>. E.g. Mr., Dr., Ms.,
   2.769 -              Mrs.
   2.770 -            </p>
   2.771 +            This attribute contains the honorific prefix (or title) of this <a>Contact</a>. E.g. Mr., Dr., Ms., Mrs.
   2.772            </dd>
   2.773 -          <dt>attribute DOMString? honorificSuffix</dt>
   2.774 +          <dt>DOMString? honorificSuffix</dt>
   2.775            <dd>
   2.776 -            <p>
   2.777 -              This attribute contains the honorific suffix of this <a>Contact</a>. E.g. Jr., III, Sr.
   2.778 -            </p>
   2.779 +            This attribute contains the honorific suffix of this <a>Contact</a>. E.g. Jr., III, Sr.
   2.780            </dd>
   2.781          </dl>
   2.782        </section>
   2.783  
   2.784        <section>
   2.785 -        <h2><a>ContactField</a> interface</h2>
   2.786 -
   2.787 +        <h2>The <a>ContactField</a> dictionary</h2>
   2.788          <p>
   2.789 -          The <a>ContactField</a> interface is a reusable component that is used to capture contact fields of the
   2.790 -          <a>Contact</a> interface that have some modicum of structure.
   2.791 +          The <a>ContactField</a> dictionary is a reusable component that is used to capture contact fields of the
   2.792 +          <a>Contact</a> dictionary that have some modicum of structure.
   2.793          </p>
   2.794  
   2.795 -        <dl title='[NoInterfaceObject] interface ContactField' class='idl'>
   2.796 -          <dt>attribute DOMString type</dt>
   2.797 +        <dl title='dictionary ContactField' class='idl'>
   2.798 +          <dt>DOMString type</dt>
   2.799            <dd>
   2.800 -            <p>
   2.801 -              This attribute contains the type information for this <a>ContactField</a> and its content varies subject
   2.802 -              to the contact property this <a>ContactField</a> is representing. For example, if the <a>ContactField</a> 
   2.803 -              is representing a <code>phoneNumber</code> property, the <code>type</code> attribute can be set to 
   2.804 -              <code>home</code>, <code>mobile</code>; if the <a>ContactField</a> is representing the <code>ims</code> 
   2.805 -              property, the type attribute could be set to <code>xmpp</code>, <code>irc</code>, <code>bbm</code>, etc.
   2.806 -            </p>
   2.807 +            This attribute contains the type information for this <a>ContactField</a> and its content varies subject
   2.808 +            to the contact property this <a>ContactField</a> is representing. For example, if the <a>ContactField</a> 
   2.809 +            is representing a <code>phoneNumber</code> property, the <code>type</code> attribute can be set to 
   2.810 +            <code>home</code>, <code>mobile</code>; if the <a>ContactField</a> is representing the <code>ims</code> 
   2.811 +            property, the type attribute could be set to <code>xmpp</code>, <code>irc</code>, <code>bbm</code>, etc.
   2.812            </dd>
   2.813 -          <dt>attribute DOMString? value</dt>
   2.814 +          <dt>DOMString? value</dt>
   2.815            <dd>
   2.816 -            <p>
   2.817 -              This attribute contains the value for this <a>ContactField</a> and its content varies subject to the
   2.818 -              contact property this <a>ContactField</a> is representing. For example, if the <a>ContactField</a> is 
   2.819 -              representing an <code>email</code>, the value attribute could be set to <code>JoeSmith@example.com</code>, 
   2.820 -              and if the <a>ContactField</a> is representing a <code>url</code>, the value attribute can be set to    
   2.821 -              <code>http://www.example.org/joesmith</code>, etc.
   2.822 -            </p>
   2.823 +            This attribute contains the value for this <a>ContactField</a> and its content varies subject to the
   2.824 +            contact property this <a>ContactField</a> is representing. For example, if the <a>ContactField</a> is 
   2.825 +            representing an <code>email</code>, the value attribute could be set to <code>JoeSmith@example.com</code>, 
   2.826 +            and if the <a>ContactField</a> is representing a <code>url</code>, the value attribute can be set to    
   2.827 +            <code>http://www.example.org/joesmith</code>, etc.
   2.828            </dd>
   2.829 -          <dt>attribute boolean pref</dt>
   2.830 +          <dt>boolean pref</dt>
   2.831            <dd>
   2.832 -            <p>
   2.833 -              This attribute indicates whether this instance of the <a>ContactField</a> is the
   2.834 -              preferred, or primary, value for the contact property this <a>ContactField</a> is
   2.835 -              representing in the <a>Contact</a> interface. By default, the value is <code>false</code>.
   2.836 -            </p>
   2.837 +            This attribute indicates whether this instance of the <a>ContactField</a> is the
   2.838 +            preferred, or primary, value for the contact property this <a>ContactField</a> is
   2.839 +            representing in the <a>Contact</a> interface. By default, the value is <code>false</code>.
   2.840            </dd>
   2.841          </dl>
   2.842        </section>
   2.843  
   2.844        <section>
   2.845 -        <h2><a>ContactAddress</a> interface</h2>
   2.846 -
   2.847 +        <h2>The <a>ContactAddress</a> dictionary</h2>
   2.848          <p>
   2.849 -          The <a>ContactAddress</a> interface is a reusable component that is used to capture addresses
   2.850 -          within the <a>Contact</a> interface.
   2.851 +          The <a>ContactAddress</a> dictionary is a reusable component that is used to capture addresses
   2.852 +          within the <a>Contact</a> dictionary.
   2.853          </p>
   2.854 -        <dl title='[NoInterfaceObject] interface ContactAddress' class='idl'>
   2.855 -          <dt>attribute boolean pref</dt>
   2.856 +        <dl title='dictionary ContactAddress' class='idl'>
   2.857 +          <dt>boolean pref</dt>
   2.858            <dd>
   2.859 -            <p>
   2.860 -              This attribute indicates whether this instance of the <code>ContactAddress</code> is the preferred, or primary, value for the contact. 
   2.861 -              By default, the value is <code>false</code>.
   2.862 -            </p>
   2.863 +            This attribute indicates whether this instance of the <code>ContactAddress</code> is the preferred, 
   2.864 +            or primary, value for the contact. By default, the value is <code>false</code>.
   2.865            </dd>
   2.866 -          <dt>attribute DOMString? type</dt>
   2.867 +          <dt>DOMString? type</dt>
   2.868            <dd>
   2.869 -            <p>
   2.870 -              This attribute contains the type of address this object is representing (e.g. <code>work</code>, <code>home</code>, <code>premises</code>, etc).
   2.871 -            </p>
   2.872 +            This attribute contains the type of address this object is representing (e.g. <code>work</code>, 
   2.873 +            <code>home</code>, <code>premises</code>, etc).
   2.874            </dd>
   2.875 -          <dt>attribute DOMString? streetAddress</dt>
   2.876 +          <dt>DOMString? streetAddress</dt>
   2.877            <dd>
   2.878 -            <p>
   2.879 -              This attribute contains the street address corresponding to this <a>ContactAddress</a>.
   2.880 -            </p>
   2.881 +            This attribute contains the street address corresponding to this <a>ContactAddress</a>.
   2.882            </dd>
   2.883 -          <dt>attribute DOMString? locality</dt>
   2.884 +          <dt>DOMString? locality</dt>
   2.885            <dd>
   2.886 -            <p>
   2.887 -              This attribute contains the locality (or city) name corresponding to this <a>ContactAddress</a>.
   2.888 -            </p>
   2.889 +            This attribute contains the locality (or city) name corresponding to this <a>ContactAddress</a>.
   2.890            </dd>
   2.891 -          <dt>attribute DOMString? region</dt>
   2.892 +          <dt>DOMString? region</dt>
   2.893            <dd>
   2.894 -            <p>
   2.895 -              This attribute contains the region (or state/province) name corresponding to this <a>ContactAddress</a>.
   2.896 -            </p>
   2.897 +            This attribute contains the region (or state/province) name corresponding to this <a>ContactAddress</a>.
   2.898            </dd>
   2.899 -          <dt>attribute DOMString? postalCode</dt>
   2.900 +          <dt>DOMString? postalCode</dt>
   2.901            <dd>
   2.902 -            <p>
   2.903 -              This attribute contains the postal code (or zip) corresponding to this <a>ContactAddress</a>.
   2.904 -            </p>
   2.905 +            This attribute contains the postal code (or zip) corresponding to this <a>ContactAddress</a>.
   2.906            </dd>
   2.907 -          <dt>attribute DOMString? country</dt>
   2.908 +          <dt>DOMString? country</dt>
   2.909            <dd>
   2.910 -            <p>
   2.911 -              This attribute contains the country name corresponding to this <a>ContactAddress</a>.
   2.912 -            </p>
   2.913 +            This attribute contains the country name corresponding to this <a>ContactAddress</a>.
   2.914            </dd>
   2.915          </dl>
   2.916        </section>
   2.917  
   2.918        <section>
   2.919 -        <h2><a>ContactOrganization</a> interface</h2>
   2.920 -
   2.921 +        <h2>The <a>ContactOrganization</a> dictionary</h2>
   2.922          <p>
   2.923 -          The <a>ContactOrganization</a> interface is a reusable component that is used to support contact
   2.924 -          organisations within the <a>Contact</a> interface.
   2.925 +          The <a>ContactOrganization</a> dictionary is a reusable component that is used to support contact
   2.926 +          organisations within the <a>Contact</a> dictionary.
   2.927          </p>
   2.928 -
   2.929 -        <dl title='[NoInterfaceObject] interface ContactOrganization' class='idl'>
   2.930 -          <dt>attribute boolean pref</dt>
   2.931 +        <dl title='dictionary ContactOrganization' class='idl'>
   2.932 +          <dt>boolean pref</dt>
   2.933            <dd>
   2.934 -            <p>
   2.935 -              This attribute indicates whether this instance of the <code>ContactOrganization</code> is the preferred, or 
   2.936 -              primary, value for the contact. By default, the value is <code>false</code>.
   2.937 -            </p>
   2.938 +            This attribute indicates whether this instance of the <code>ContactOrganization</code> is the preferred, or 
   2.939 +            primary, value for the contact. By default, the value is <code>false</code>.
   2.940            </dd>
   2.941 -          <dt>attribute DOMString? type</dt>
   2.942 +          <dt>DOMString? type</dt>
   2.943            <dd>
   2.944 -            <p>
   2.945 -              This attribute contains the type of organization this object is representing. 
   2.946 -            </p>
   2.947 +            This attribute contains the type of organisation this object is representing. 
   2.948            </dd>
   2.949 -          <dt>attribute DOMString? name</dt>
   2.950 +          <dt>DOMString? name</dt>
   2.951            <dd>
   2.952 -            <p>
   2.953 -              The name of the organisation.
   2.954 -            </p>
   2.955 +            The name of the organisation.
   2.956            </dd>
   2.957 -          <dt>attribute DOMString? department</dt>
   2.958 +          <dt>DOMString? department</dt>
   2.959            <dd>
   2.960 -            <p>
   2.961 -              The department within which this <a>Contact</a> works.
   2.962 -            </p>
   2.963 +            The department within which this <a>Contact</a> works.
   2.964            </dd>
   2.965 -          <dt>attribute DOMString? title</dt>
   2.966 +          <dt>DOMString? title</dt>
   2.967            <dd>
   2.968 -            <p>
   2.969 -              The job title that the <a>Contact</a> holds inside this organisation.
   2.970 -            </p>
   2.971 +            The job title that the <a>Contact</a> holds inside this organisation.
   2.972            </dd>
   2.973          </dl>
   2.974        </section>
   2.975 -
   2.976        <section>
   2.977 -        <h2><a>ContactFindOptions</a> interface</h2>
   2.978 +        <h2>The <a>ContactError</a> dictionary</h2>
   2.979          <p>
   2.980 -          The <a>ContactFindOptions</a> interface describes the options that can be applied to contact searching. 
   2.981 -          When a <a>ContactFindOptions</a> parameter is provided to the <a>Contacts</a> <a href="#widl-Contacts-find-void-DOMStringArray-fields-ContactFindCB-successCB-ContactErrorCB-errorCB-ContactFindOptions-options">find()</a>
   2.982 -          operation, it should be processed according to the provisions detailed in 
   2.983 -          <a href="#options-processing">Options Processing</a>.
   2.984 +          If the <a>contact service</a> encounters an error then it MUST return an error 
   2.985 +          (through <code>postFailure()</code>) using the <a>ContactError</a> dictionary.
   2.986          </p>
   2.987 -        <dl title='[NoInterfaceObject] interface ContactFindOptions' class='idl'>
   2.988 -          <dt>attribute DOMString? filter</dt>
   2.989 -          <dd>
   2.990 -            A string-based <a>search filter</a> which provides a hint to the user agent to facilitate contacts selection by the user.
   2.991 -          </dd>
   2.992 -          <dt>attribute boolean? multiple</dt>
   2.993 -          <dd>
   2.994 -            A boolean value to indicate whether multiple Contact objects are wanted as part of the
   2.995 -            <a>Contacts</a> <a href="#widl-Contacts-find-void-DOMStringArray-fields-ContactFindCB-successCB-ContactErrorCB-errorCB-ContactFindOptions-options">find()</a> operation.
   2.996 -            By default this option is set to <code>false</code>.
   2.997 -          </dd>
   2.998 +        <dl title='dictionary ContactError' class='idl'>
   2.999 +          <dt>DOMString message</dt>
  2.1000 +          <dd>A message describing the error.</dd>
  2.1001          </dl>
  2.1002        </section>
  2.1003 -
  2.1004        <section>
  2.1005 -        <h2><a>ContactFindCB</a> interface</h2>
  2.1006 +        <h2>Extended Contact Properties and Parameters</h2>
  2.1007          <p>
  2.1008 -          This is the wrapper interface for callbacks indicating success of the <a href="#widl-Contacts-find-void-DOMStringArray-fields-ContactFindCB-successCB-ContactErrorCB-errorCB-ContactFindOptions-options">find()</a> 
  2.1009 -          operation.
  2.1010 +          A <a>contact service</a> MAY extend the dictionaries described in in the Data Formats section with
  2.1011 +          additional fields. If providing an extended field, a <a>contact service</a> MUST prefix its name
  2.1012 +          with <code>X</code> (U+0058 LATIN CAPITAL LETTER X) or use a vendor-specific prefix.
  2.1013          </p>
  2.1014 -
  2.1015 -        <dl title='[Callback=FunctionOnly, NoInterfaceObject] interface ContactFindCB' class='idl'>
  2.1016 -          <dt>void onsuccess ()</dt>
  2.1017 -          <dd>
  2.1018 -            <dl class='parameters'>
  2.1019 -              <dt>Contact[] contactObjs</dt>
  2.1020 -              <dd>
  2.1021 -                An array of <a>Contact</a> objects resulting from the given <a>Contacts</a> 
  2.1022 -                <a href="#widl-Contacts-find-void-DOMStringArray-fields-ContactFindCB-successCB-ContactErrorCB-errorCB-ContactFindOptions-options">find()</a> operation.
  2.1023 -              </dd>
  2.1024 -            </dl>
  2.1025 -          </dd>
  2.1026 -        </dl>
  2.1027 -
  2.1028 -        <section>
  2.1029 -          <h3>Event Handler Attributes</h3>
  2.1030 -          <p>
  2.1031 -            The following is the <a>event handler attribute</a> (and its corresponding <a>event handler event
  2.1032 -            type</a>) that MUST be supported as a DOM attribute by the <a>ContactFindCB</a> object.
  2.1033 -          </p>
  2.1034 -          <table class='simple'>
  2.1035 -            <thead>
  2.1036 -              <tr>
  2.1037 -                <th>event handler attribute</th>
  2.1038 -                <th>event handler event type</th>
  2.1039 -              </tr>
  2.1040 -            </thead>
  2.1041 -            <tbody>
  2.1042 -              <tr>
  2.1043 -                <td><strong><code>onsuccess</code></strong></td>
  2.1044 -                <td><code>success</code></td>
  2.1045 -              </tr>
  2.1046 -            </tbody>
  2.1047 -          </table>
  2.1048 -        </section>
  2.1049 -      </section>
  2.1050 -
  2.1051 -      <section>
  2.1052 -        <h2><a>ContactErrorCB</a> interface</h2>
  2.1053 -        <p>
  2.1054 -          This is the wrapper interface for callbacks indicating failure of the <a href="#widl-Contacts-find-void-DOMStringArray-fields-ContactFindCB-successCB-ContactErrorCB-errorCB-ContactFindOptions-options">find()</a> 
  2.1055 -          operation.
  2.1056 -        </p>
  2.1057 -
  2.1058 -        <dl title='[Callback=FunctionOnly, NoInterfaceObject] interface ContactErrorCB' class='idl'>
  2.1059 -          <dt>void onerror ()</dt>
  2.1060 -          <dd>
  2.1061 -            <dl class='parameters'>
  2.1062 -              <dt>ContactError error</dt>
  2.1063 -              <dd>The <a>ContactError</a> object capturing the type of the error.</dd>
  2.1064 -            </dl>
  2.1065 -          </dd>
  2.1066 -        </dl>
  2.1067 -
  2.1068 -        <section>
  2.1069 -          <h3>Event Handler Attributes</h3>
  2.1070 -          <p>
  2.1071 -            The following is the <a>event handler attribute</a> (and its corresponding <a>event handler event
  2.1072 -            type</a>) that MUST be supported as a DOM attribute by the <a>ContactErrorCB</a> object.
  2.1073 -          </p>
  2.1074 -
  2.1075 -          <table class='simple'>
  2.1076 -            <thead>
  2.1077 -              <tr>
  2.1078 -                <th>event handler attribute</th>
  2.1079 -                <th>event handler event type</th>
  2.1080 -              </tr>
  2.1081 -            </thead>
  2.1082 -            <tbody>
  2.1083 -              <tr>
  2.1084 -                <td><strong><code><strong>onerror</strong></code></strong></td>
  2.1085 -                <td><code>error</code></td>
  2.1086 -              </tr>
  2.1087 -            </tbody>
  2.1088 -          </table>
  2.1089 -        </section>
  2.1090 -      </section>
  2.1091 -
  2.1092 -      <section>
  2.1093 -        <h2><a>ContactError</a> interface</h2>
  2.1094 -        <p>
  2.1095 -          The <a>ContactError</a> interface encapsulates all errors in the manipulation of 
  2.1096 -          <a>Contact</a> objects.
  2.1097 -        </p>
  2.1098 -
  2.1099 -        <dl title='[NoInterfaceObject] interface ContactError' class='idl'>
  2.1100 -          <dt>const unsigned short UNKNOWN_ERROR = 0</dt>
  2.1101 -          <dd>An unknown error occurred.</dd>
  2.1102 -
  2.1103 -          <dt>const unsigned short INVALID_ARGUMENT_ERROR = 1</dt>
  2.1104 -          <dd>An invalid parameter was provided when the requested method was invoked.</dd>
  2.1105 -
  2.1106 -          <dt>const unsigned short TIMEOUT_ERROR = 2</dt>
  2.1107 -          <dd>The requested method timed out before it could be completed.</dd>
  2.1108 -
  2.1109 -          <dt>const unsigned short PENDING_OPERATION_ERROR = 3</dt>
  2.1110 -          <dd>There is already a <a>task</a> in the <a>device task source</a>.</dd>
  2.1111 -
  2.1112 -          <dt>const unsigned short IO_ERROR = 4</dt>
  2.1113 -          <dd>An error occurred in communication with the underlying implementation that meant the requested
  2.1114 -          method could not complete.</dd>
  2.1115 -
  2.1116 -          <dt>const unsigned short NOT_SUPPORTED_ERROR = 5</dt>
  2.1117 -          <dd>The requested method is not supported by the current implementation.</dd>
  2.1118 -
  2.1119 -          <dt>const unsigned short PERMISSION_DENIED_ERROR = 20</dt>
  2.1120 -          <dd>Access to the requested information was denied by the implementation or by the user.</dd>
  2.1121 -
  2.1122 -          <dt>readonly attribute unsigned short code</dt>
  2.1123 -          <dd>An error code assigned by an implementation when an error has occurred in Contacts API
  2.1124 -          processing.</dd>
  2.1125 -        </dl>
  2.1126        </section>
  2.1127      </section>
  2.1128 -
  2.1129 -    <section>
  2.1130 -      <h2><a>Contact Search Processing</a></h2>
  2.1131 -
  2.1132 -      <p>
  2.1133 -      The <a href="#contacts-interface"><code>Contacts</code></a> <a href="#widl-Contacts-find-void-DOMStringArray-fields-ContactFindCB-successCB-ContactErrorCB-errorCB-ContactFindOptions-options">find()</a>
  2.1134 -      method provides an operation to search for one of more <a href=
  2.1135 -      "#contact-interface"><code>Contact</code></a> objects within the <a href=
  2.1136 -      "#contacts-interface"><code>Contacts</code></a> database.
  2.1137 -      </p>
  2.1138 -
  2.1139 -      <section>
  2.1140 -        <h3>Search Qualifiers</h3>
  2.1141 -
  2.1142 -        <p>
  2.1143 -        The <dfn>search qualifier</dfn> provides an application with a way to request the specific subset of
  2.1144 -        <a href="#contact-interface"><code>Contact</code></a> properties it wishes to obtain in any resulting
  2.1145 -        successful callback. The <a>search qualifier</a> is deployed to minimize the data that needs to be
  2.1146 -        shared with an application in order to let that application fulfill its function on behalf of the user.
  2.1147 -        The <a>search qualifier</a> is included within a <a href=
  2.1148 -        "#contacts-interface"><code>Contacts</code></a> <a href="#widl-Contacts-find-void-DOMStringArray-fields-ContactFindCB-successCB-ContactErrorCB-errorCB-ContactFindOptions-options">find()</a> operation as
  2.1149 -        the <code>fields</code> parameter.
  2.1150 -        </p>
  2.1151 -
  2.1152 -        <p id="ta-aj" class="product-ua">
  2.1153 -        A <a>search qualifier</a> MUST be specified from a requesting application as a part of any <a href=
  2.1154 -        "#contacts-interface"><code>Contacts</code></a> <a href="#widl-Contacts-find-void-DOMStringArray-fields-ContactFindCB-successCB-ContactErrorCB-errorCB-ContactFindOptions-options">find()</a> operation.
  2.1155 -        </p>
  2.1156 -
  2.1157 -        <p id="ta-ab" class="product-ua">
  2.1158 -        If the <a>search qualifier</a> provided is of <em>zero-length</em> then the current <a href=
  2.1159 -        "#contacts-interface"><code>Contacts</code></a> <a href="#widl-Contacts-find-void-DOMStringArray-fields-ContactFindCB-successCB-ContactErrorCB-errorCB-ContactFindOptions-options">find()</a> operation and 
  2.1160 -        the current find() operation was invoked with a non-<code>null</code> 
  2.1161 -        <code>errorCB</code> parameter, then the user agent MUST invoke the <code>errorCB</code> function
  2.1162 -        with an error code of <a href=
  2.1163 -        "#widl-ContactError-INVALID_ARGUMENT_ERROR"><code>INVALID_ARGUMENT_ERROR</code></a>.
  2.1164 -        </p>
  2.1165 -
  2.1166 -        <p id="ta-ak" class="product-ua">
  2.1167 -        In the case that the <a>search qualifier</a> provided is of <em>non-zero-length</em> then the
  2.1168 -        current <a href="#contacts-interface"><code>Contacts</code></a> <a href=
  2.1169 -        "#widl-Contacts-find-void-DOMStringArray-fields-ContactFindCB-successCB-ContactErrorCB-errorCB-ContactFindOptions-options">find()</a> operation MUST return only the matching <a href=
  2.1170 -        "#contact-interface"><code>Contact</code></a> properties within any resulting <a href=
  2.1171 -        "#contact-interface"><code>Contact</code></a> object(s).
  2.1172 -        </p>
  2.1173 -
  2.1174 -        <p id="ta-al" class="product-ua">
  2.1175 -        If a provided <a>search qualifier</a> element (<code>fields[x]</code>) does not match a <a href=
  2.1176 -        "#contact-interface"><code>Contact</code></a> attribute, <code>fields[x]</code> SHOULD be ignored when
  2.1177 -        executing the current <a href="#contacts-interface"><code>Contacts</code></a> <a href=
  2.1178 -        "#widl-Contacts-find-void-DOMStringArray-fields-ContactFindCB-successCB-ContactErrorCB-errorCB-ContactFindOptions-options">find()</a> operation.
  2.1179 -        </p>
  2.1180 -
  2.1181 -        <section>
  2.1182 -          <h3>Advanced Search Qualifiers</h3>
  2.1183 -
  2.1184 -          <p>
  2.1185 -          We call <dfn>composed attributes</dfn> <a href="#contact-interface"><code>Contact</code></a>
  2.1186 -          attributes of types <code>object</code>, which contain information only available 
  2.1187 -          only through child attributes of that object, or <code>array</code>.
  2.1188 -          </p>
  2.1189 -
  2.1190 -          <p class="product-ua" id="ta-ad">
  2.1191 -          A requesting application MUST be able to request both the full composed <a href=
  2.1192 -          "#contact-interface"><code>Contact</code></a> attribute and also be able to request individual parts
  2.1193 -          of a composed <a href="#contact-interface"><code>Contact</code></a> attribute in the <a>search
  2.1194 -          qualifier</a> provided to a <a href="#contacts-interface"><code>Contacts</code></a> <a href=
  2.1195 -          "#widl-Contacts-find-void-DOMStringArray-fields-ContactFindCB-successCB-ContactErrorCB-errorCB-ContactFindOptions-options">find()</a> operation.
  2.1196 -          </p>
  2.1197 -
  2.1198 -          <p>
  2.1199 -          For example, the <code>name</code> attribute of a <a href=
  2.1200 -          "#contact-interface"><code>Contact</code></a> object is defined to be of composed type <a href=
  2.1201 -          "#contactname-interface"><code>ContactName</code></a>. Therefore, a requesting application may
  2.1202 -          request either the full composed attribute (i.e. <code>name</code>) or specific individual attributes
  2.1203 -          of this composed attribute (i.e. <code>name.familyName</code>,
  2.1204 -          <code>name.givenName</code>, <code>name.middleName</code>, <code>name.honorificPrefix</code>,
  2.1205 -          <code>name.honorificSuffix</code>) as part of a <a href=
  2.1206 -          "#contacts-interface"><code>Contacts</code></a> <a href="#widl-Contacts-find-void-DOMStringArray-fields-ContactFindCB-successCB-ContactErrorCB-errorCB-ContactFindOptions-options">find()</a> operation's
  2.1207 -          <a>search qualifier</a>.
  2.1208 -          </p>
  2.1209 -
  2.1210 -          <p id="ta-af" class="product-ua">
  2.1211 -          In the case that a composed <a href="#contact-interface"><code>Contact</code></a> attribute is
  2.1212 -          defined as an array of composed objects, specific individual attributes can be referenced
  2.1213 -          by using the composed attribute name, a dot (<code>.</code>) character and the individual attribute
  2.1214 -          to be retrieved.
  2.1215 -          </p>
  2.1216 -
  2.1217 -          <p>
  2.1218 -          For example, the <code>addresses</code> attribute of <a href=
  2.1219 -          "#contact-interface"><code>Contact</code></a> allows multiple <a href=
  2.1220 -          "#contactaddress-interface"><code>ContactAddress</code></a> objects to be defined. To request
  2.1221 -          individual attributes of this composed attribute an application would request e.g.
  2.1222 -          <code>addresses.locality</code>, <code>addresses.region</code>, etc.
  2.1223 -          </p>
  2.1224 -        </section>
  2.1225 -
  2.1226 -        <div class="example">
  2.1227 -          <p>
  2.1228 -          The following Contact search is initiated:
  2.1229 -          </p>
  2.1230 -          <pre class="sh_javascript">
  2.1231 - 
  2.1232 -     navigator.contacts( ['emails.value', 'name', 'friends'],
  2.1233 -                         function(contacts) { 
  2.1234 -                           for(i in contacts) {
  2.1235 -                             for(j in contacts[i].emails)
  2.1236 -                               alert(contacts[i].emails[j]);
  2.1237 -                           }
  2.1238 -                         } );
  2.1239 -  </pre>
  2.1240 -
  2.1241 -          <p>
  2.1242 -          The above example logically implies:
  2.1243 -          </p>
  2.1244 -
  2.1245 -          <ol class="rule">
  2.1246 -            <li>Return only the valid <a href="#contact-interface"><code>Contact</code></a> attributes
  2.1247 -            requested in the provided <a>search qualifier</a> (<code>name</code>, <code>emails.value</code> -
  2.1248 -            <code>friends</code> is not a valid <a href="#contact-interface"><code>Contact</code></a> attribute
  2.1249 -            so ignore this element).</li>
  2.1250 -          </ol>
  2.1251 -        </div>
  2.1252 -      </section>
  2.1253 -
  2.1254 -      <section>
  2.1255 -        <h2>Options Processing</h2>
  2.1256 -
  2.1257 -        <section>
  2.1258 -          <h3>Search Cardinality</h3>
  2.1259 -
  2.1260 -          <p id="ta-am" class="product-ua">
  2.1261 -          By default, the <a href="#contacts-interface"><code>Contacts</code></a> <a href=
  2.1262 -          "#widl-Contacts-find-void-DOMStringArray-fields-ContactFindCB-successCB-ContactErrorCB-errorCB-ContactFindOptions-options">find()</a> operation MUST return either an empty sequence or a single <a href=
  2.1263 -          "#contact-interface"><code>Contact</code></a> object, accessible as part of the sequence returned in
  2.1264 -          the <a href="#contactfindcb-interface"><code>ContactFindCB</code></a> callback function.
  2.1265 -          </p>
  2.1266 -
  2.1267 -          <p id="ta-ae" class="product-ua">
  2.1268 -          If a <a href="#contactfindoptions-interface"><code>ContactFindOptions</code></a> object is
  2.1269 -          provided to the <a href="#contacts-interface"><code>Contacts</code></a> <a href=
  2.1270 -          "#widl-Contacts-find-void-DOMStringArray-fields-ContactFindCB-successCB-ContactErrorCB-errorCB-ContactFindOptions-options">find()</a> operation and its <code>multiple</code> attribute is set to
  2.1271 -          <code>true</code>, the <a href="#contacts-interface"><code>Contacts</code></a> <a href=
  2.1272 -          "#widl-Contacts-find-void-DOMStringArray-fields-ContactFindCB-successCB-ContactErrorCB-errorCB-ContactFindOptions-options">find()</a> operation MUST return either an empty sequence, a single <a href=
  2.1273 -          "#contact-interface"><code>Contact</code></a> object or <var>[X]</var> number of <a href=
  2.1274 -          "#contact-interface"><code>Contact</code></a> objects, accessible as part of the sequence returned in
  2.1275 -          the <a href="#contactfindcb-interface"><code>ContactFindCB</code></a> callback function.
  2.1276 -          </p>
  2.1277 -        </section>
  2.1278 -
  2.1279 -        <section>
  2.1280 -          <h3>Search Filters</h3>
  2.1281 -
  2.1282 -	  <p>
  2.1283 -          A <dfn>search filter</dfn> may be specified from a requesting web application to provide a hint to the user agents as to which contacts the user can select to share with the application.</p>
  2.1284 -
  2.1285 -	  <p>The <a>search filter</a> is defined through the <code>filter</code>
  2.1286 -          attribute of the <a href="#contactfindoptions-interface"><code>ContactFindOptions</code></a> object
  2.1287 -          provided to a <a href="#contacts-interface"><code>Contacts</code></a> <a href=
  2.1288 -          "#widl-Contacts-find-void-DOMStringArray-fields-ContactFindCB-successCB-ContactErrorCB-errorCB-ContactFindOptions-options">find()</a> operation.
  2.1289 -          </p>
  2.1290 -
  2.1291 -          <p>The actual usage of this <a>search filter</a> is user-agent dependant, but is expected to represent
  2.1292 -          the logical union of provided values that are matched therein.
  2.1293 -          </p>
  2.1294 -	</section>
  2.1295 -      </section>
  2.1296 -    </section>
  2.1297 -
  2.1298 -    <section>
  2.1299 -      <h2>Extended Contact Properties and Parameters</h2>
  2.1300 -
  2.1301 -      <p>
  2.1302 -      The properties and parameters defined on the <a href="#contact-interface"><code>Contact</code></a>
  2.1303 -      interface MAY be extended by implementers of this specification.
  2.1304 -      </p>
  2.1305 -
  2.1306 -      <p>
  2.1307 -      Non-standard, private properties and parameters MUST have a prefixed name starting with
  2.1308 -      <code>X</code> (U+0058 LATIN CAPITAL LETTER X) or use a vendor-specific prefix. Extended properties and
  2.1309 -      parameters can be defined bilaterally between <a title="user agent">user agents</a> without outside
  2.1310 -      registration or standardization.
  2.1311 -      </p>
  2.1312 -
  2.1313 -      <p>
  2.1314 -      It is RECOMMENDED that authors define both a formal vCard grammar and a WebIDL grammar for their
  2.1315 -      proposed extension to ensure interoperability between vCard databases and other non-standard Contact
  2.1316 -      databases and formats. It is also RECOMMENDED that authors provide documentation of their extension
  2.1317 -      properties and parameters within the public domain.
  2.1318 -      </p>
  2.1319 -
  2.1320 -      <div class="example">
  2.1321 -        <p>
  2.1322 -        A new parameter is required by Company X to provide information related to a user's accounts
  2.1323 -        registered across different networks and services.
  2.1324 -        </p>
  2.1325 -
  2.1326 -        <p>
  2.1327 -        The [[WEBIDL]] syntax for this parameter is defined as follows:
  2.1328 -        </p>
  2.1329 -
  2.1330 -        <div class='idl' title='Contact implements ContactExtended'>
  2.1331 -          &nbsp;
  2.1332 -        </div>
  2.1333 -
  2.1334 -        <dl title='[NoInterfaceObject] interface ContactExtended' class='idl'>
  2.1335 -          <dt>attribute ContactAccount[] Xaccounts</dt>
  2.1336 -
  2.1337 -          <dd>One or more user accounts. See [[[POCO-SCHEMA]] Section 7.2.2. <code>accounts</code>].</dd>
  2.1338 -        </dl>
  2.1339 -
  2.1340 -        <dl title='[NoInterfaceObject] interface ContactAccount' class='idl'>
  2.1341 -          <dt>attribute DOMString domain</dt>
  2.1342 -
  2.1343 -          <dd>
  2.1344 -            <p>
  2.1345 -            See [[[POCO-SCHEMA]] Section 7.6. <code>domain</code>].
  2.1346 -            </p>
  2.1347 -          </dd>
  2.1348 -
  2.1349 -          <dt>attribute DOMString username</dt>
  2.1350 -
  2.1351 -          <dd>
  2.1352 -            <p>
  2.1353 -            See [[[POCO-SCHEMA]] Section 7.6. <code>username</code>].
  2.1354 -            </p>
  2.1355 -          </dd>
  2.1356 -
  2.1357 -          <dt>attribute DOMString userid</dt>
  2.1358 -
  2.1359 -          <dd>
  2.1360 -            <p>
  2.1361 -            See [[[POCO-SCHEMA]] Section 7.6. <code>userid</code>].
  2.1362 -            </p>
  2.1363 -          </dd>
  2.1364 -        </dl>
  2.1365 -
  2.1366 -        <p>
  2.1367 -        The corresponding vCard [[RFC2426]] notation for this parameter is defined as follows:
  2.1368 -        </p>
  2.1369 -        <pre>
  2.1370 -     The following ABNF grammar extends the grammar found in [[RFC2426]] (Section 4).
  2.1371 -   
  2.1372 -     <strong>X-ACCOUNT</strong>
  2.1373 -   
  2.1374 -     Purpose:  To specify the components of the accounts for the vCard 
  2.1375 -        object.
  2.1376 -
  2.1377 -     Value type:  A single structured text value, separated by the SEMI-
  2.1378 -        COLON character (ASCII decimal 59).
  2.1379 -
  2.1380 -     Cardinality:  (0,n)
  2.1381 -
  2.1382 -     Special notes:  The structured type value consists of a sequence of
  2.1383 -        account components.  The component values must be specified in
  2.1384 -        their corresponding position.  The structured type value
  2.1385 -        corresponds, in sequence, to the domain; the username; the userid.
  2.1386 -        When a component value is missing, the associated component 
  2.1387 -        separator must still be specified.    
  2.1388 -
  2.1389 -        The text components are separated by the SEMI-COLON character
  2.1390 -        (ASCII decimal 59).
  2.1391 -      
  2.1392 -     ABNF:
  2.1393 -   
  2.1394 -       X-ACCOUNT-param = ; no parameter allowed
  2.1395 -       X-ACCOUNT-value = list-component 3(";" list-component)
  2.1396 -  </pre>
  2.1397 -
  2.1398 -        <p>
  2.1399 -        This parameter will be used within the Contacts API as follows:
  2.1400 -        </p>
  2.1401 -        <pre class="sh_javascript">
  2.1402 -     var contact = ...; // ...obtain individual contact object
  2.1403 -     for(var i in contact.Xaccounts) {
  2.1404 -        alert(contact.Xaccounts[i].domain);   // thesocialnetwork.com
  2.1405 -        alert(contact.Xaccounts[i].username); // null
  2.1406 -        alert(contact.Xaccounts[i].userid);   // 344aesq2
  2.1407 -     }            
  2.1408 -  </pre>
  2.1409 -
  2.1410 -        <p>
  2.1411 -        This parameter will be used within the vCard format [[RFC2426]]] as follows:
  2.1412 -        </p>
  2.1413 -        <pre>
  2.1414 -     X-ACCOUNT;thesocialnetwork.com;;344aesq2
  2.1415 -  </pre>
  2.1416 -      </div>
  2.1417 -    </section>
  2.1418 -
  2.1419 -    <section>
  2.1420 -      <h3>API Invocation via DOM Events</h3>
  2.1421 -
  2.1422 -      <p>
  2.1423 -      The API contained in this document can be invoked either programmatically (for example, inline within
  2.1424 -      a general script) or resulting from the <a>interaction of a user</a>.
  2.1425 -      </p>
  2.1426 -
  2.1427 -      <p>
  2.1428 -      The <dfn>interaction of a user</dfn> is when a user invokes the API from an <a href=
  2.1429 -      "http://dev.w3.org/html5/markup/elements.html"><code>HTMLElement</code></a> [[HTML5]] within the current
  2.1430 -      <a>browsing context</a> via a <a>valid auto-invocation event</a>.
  2.1431 -      </p>
  2.1432 -
  2.1433 -      <p>
  2.1434 -      A <dfn>valid auto-invocation event</dfn> includes any of the following event types, as defined in
  2.1435 -      [[!DOM-LEVEL-3-EVENTS]]:
  2.1436 -      </p>
  2.1437 -
  2.1438 -      <ul>
  2.1439 -        <li><code>click</code></li>
  2.1440 -
  2.1441 -        <li><code>dblclick</code></li>
  2.1442 -
  2.1443 -        <li><code>mouseup</code></li>
  2.1444 -      </ul>
  2.1445 -
  2.1446 -      <p>
  2.1447 -      The <code>find()</code> method on <a href="#contacts-interface"><code>Contacts</code></a> should, if
  2.1448 -      the method was invoked by an <a>interaction of a user</a> (as opposed to having been created and executed
  2.1449 -      in general script), display the <a>Contact Picker</a> directly.
  2.1450 -      </p>
  2.1451 -    </section>
  2.1452 -
  2.1453      <section class="informative appendix">
  2.1454        <h2>User Interaction Guidelines</h2>
  2.1455  
  2.1456 @@ -1371,226 +708,5 @@
  2.1457          </p>
  2.1458        </section>
  2.1459      </section>
  2.1460 -
  2.1461 -    <section class="informative appendix">
  2.1462 -      <h2>Adding and Updating Contacts</h2>
  2.1463 -
  2.1464 -      <p>
  2.1465 -      The ability to add and update contact information is not a function of the API provided in this
  2.1466 -      specification. Instead, the intention is to reuse existing web platform APIs and paradigms in order to
  2.1467 -      achieve add and update functionality.
  2.1468 -      </p>
  2.1469 -
  2.1470 -      <p>
  2.1471 -      In this section we show how the existing web platform would be used to provide add and update
  2.1472 -      writeback functionality to allow users to add new contacts or update existing contacts from a web page to
  2.1473 -      their unified address book.
  2.1474 -      </p>
  2.1475 -
  2.1476 -      <p>
  2.1477 -      A <dfn>valid Contact resource</dfn> is a web resource with a <code>.vcard</code> or <code>.vcf</code>
  2.1478 -      filename extension or a web resource with a MIME-type matching a <a>valid media type</a>. A <dfn>vCard
  2.1479 -      object</dfn> is a text-based representation of contact information provided according to any version of
  2.1480 -      the vCard family of specifications.
  2.1481 -      </p>
  2.1482 -
  2.1483 -      <p class="note">Need to add informative references to all specs within the 'vCard family of
  2.1484 -      specifications'.
  2.1485 -      </p>
  2.1486 -
  2.1487 -      <p>
  2.1488 -      To handle the saving of a new Contact, a <a>user agent</a> should register as the default handler for
  2.1489 -      any <a>valid Contact resource</a>.
  2.1490 -      </p>
  2.1491 -
  2.1492 -      <p>
  2.1493 -      A <dfn>valid media type</dfn> will be one of the following web resource MIME types:
  2.1494 -      </p>
  2.1495 -
  2.1496 -      <ul>
  2.1497 -        <li><code>text/vcard</code></li>
  2.1498 -        <li><code>text/x-vcard</code></li>
  2.1499 -        <li><code>text/directory</code></li>
  2.1500 -        <li><code>text/directory;profile=vCard</code></li>
  2.1501 -      </ul>
  2.1502 -
  2.1503 -      <p>
  2.1504 -      On invocation of a <a>valid Contact resource</a>, the <a>user agent</a> should, on successful download
  2.1505 -      of the <a>valid Contact resource</a>, store the given resource in the user's unified address book
  2.1506 -      according to the <a>rule for storing a Contact resource</a>. As part of this standard download process,
  2.1507 -      the <a>user agent</a> may present a dialog to the user allowing them to select a different application
  2.1508 -      with which to handle the given resource, thereby overriding the use of the unified address book for the
  2.1509 -      storage of the data contained therein and bypassing the <a>rule for storing a Contact resource</a>.
  2.1510 -      </p>
  2.1511 -
  2.1512 -      <p>
  2.1513 -      The <dfn>rule for storing a Contact resource</dfn> is defined as follows:
  2.1514 -      </p>
  2.1515 -
  2.1516 -      <p>
  2.1517 -      Let <var>Contact</var> be the parsed key/value pairs contained in the <a>valid Contact
  2.1518 -      resource</a>.
  2.1519 -      </p>
  2.1520 -
  2.1521 -      <ol>
  2.1522 -        <li>If <var>Contact</var> contains a <code>UID</code> key then process the <a>valid Contact
  2.1523 -        resource</a> as follows.
  2.1524 -
  2.1525 -          <ol>
  2.1526 -            <li>Let <var>MatchedContact</var> be the result of obtaining a Contact object from the user's
  2.1527 -            unified address book that matches exactly the value of the <code>UID</code> provided.</li>
  2.1528 -
  2.1529 -            <li>If a <var>MatchedContact</var> has been found (i.e. <var>MatchedContact</var> is
  2.1530 -            not-<code>null</code>) then update the contents of <var>MatchedContact</var> with the contents of
  2.1531 -            <var>Contact</var> and exit this rule.</li>
  2.1532 -          </ol>
  2.1533 -        </li>
  2.1534 -
  2.1535 -        <li>Save the contents of <var>Contact</var> in the user's unified address book as a new Contact
  2.1536 -        object.</li>
  2.1537 -      </ol>
  2.1538 -
  2.1539 -      <p>
  2.1540 -      As part of the <a>rule for storing a Contact resource</a>, the <a>user agent</a> may provide
  2.1541 -      additional dialogs to the user after successful completion of the download and before the Contact
  2.1542 -      information is saved to the unified address book, such as to show a preview of the Contact information
  2.1543 -      contained therein as it will be stored in the user's unified address book. The user may be able to
  2.1544 -      override the information provided before accepting the additions and permanently storing the given data
  2.1545 -      in their unified address book.
  2.1546 -      </p>
  2.1547 -
  2.1548 -      <section class="informative">
  2.1549 -        <h4>Adding a new Contact</h4>
  2.1550 -
  2.1551 -        <p>
  2.1552 -        A web page can dynamically generate a <a>vCard object</a> on the client side for download to the
  2.1553 -        user's unified address book via either data: URIs [[RFC2397]] or using the [[FILE-WRITER]] and
  2.1554 -        [[FILE-API]] interfaces. The following examples show two methods for creating a <a>vCard object</a>
  2.1555 -        dynamically and then presenting this to the user. The user may then save this information by clicking
  2.1556 -        on the presented information, download the dynamically generated <a>vCard object</a> and invoke a
  2.1557 -        suitable application with which to handle the dynamic resource.
  2.1558 -        </p>
  2.1559 -
  2.1560 -        <div class="example">
  2.1561 -          <pre class="sh_javascript">
  2.1562 -  &lt;a id="vcard"&gt;Save our Contact Details&lt;/a&gt;
  2.1563 -
  2.1564 -  &lt;script type="text/javascript"&gt;
  2.1565 -    var vcard = 'BEGIN:VCARD\r\n' +
  2.1566 -                'VERSION:2.1\r\n' +
  2.1567 -                'N:Doe;John\r\n' +
  2.1568 -                'FN:John Doe\r\n' +
  2.1569 -                'TEL;WORK;VOICE:123456\r\n' +
  2.1570 -                'END:VCARD';
  2.1571 -
  2.1572 -    // assign vCard as a Data URI to an anchor element for presentation and download by the user
  2.1573 -    document.getElementById('vcard').href = "data:text/x-vcard;charset=utf-8," + encodeURIComponent( vcard ); 
  2.1574 -  &lt;/script&gt;
  2.1575 -  </pre>
  2.1576 -        </div>
  2.1577 -
  2.1578 -        <div class="example">
  2.1579 -          <pre class="sh_javascript">
  2.1580 -  &lt;a id="vcard"&gt;Save our Contact Details&lt;/a&gt;
  2.1581 -
  2.1582 -  &lt;script type="text/javascript"&gt;
  2.1583 -    // obtain an ArrayBuffer consisting of valid vCard syntax (out of scope)
  2.1584 -    var vCardObj = getVCard( /* ... */ );
  2.1585 -            
  2.1586 -    // create a new vCard Blob [[FILE-WRITER]]
  2.1587 -    var contactBlobBuilder = new BlobBuilder();
  2.1588 -    contactBlobBuilder.append( vCardObj );
  2.1589 -    var contactBlob = contactBlobBuilder.getBlob( "text/x-vcard" );
  2.1590 -
  2.1591 -    // obtain a vCard Blob URL [[FILE-API]]
  2.1592 -    var contactBlobURL = window.URL.createObjectUrl( contactBlob );
  2.1593 -
  2.1594 -    // assign vCard Blob URL to an anchor element for presentation and download by the user
  2.1595 -    document.getElementById('vcard').href = contactBlobURL; 
  2.1596 -  &lt;/script&gt;
  2.1597 -  </pre>
  2.1598 -        </div>
  2.1599 -      </section>
  2.1600 -
  2.1601 -      <section class="informative">
  2.1602 -        <h4>Updating an existing Contact</h4>
  2.1603 -
  2.1604 -        <p>
  2.1605 -        To update an existing Contact, the user must have already shared the contact information to edit
  2.1606 -        with the current web page via the <a href='#widl-Contacts-find-void-DOMStringArray-fields-ContactFindCB-successCB-ContactErrorCB-errorCB-ContactFindOptions-options'>find()</a> operation of the <a href=
  2.1607 -        "#contacts-interface"><code>Contacts</code></a> interface. This section assumes that the user is
  2.1608 -        already sharing some contact information with the current web page via this process.
  2.1609 -        </p>
  2.1610 -
  2.1611 -        <p>
  2.1612 -        If this existing Contact information is to be updated in the user's unified address book then the
  2.1613 -        developer will assign the <code>id</code> attribute, as returned in the <code>Contact</code> object, as
  2.1614 -        the <code>UID</code> property of any resulting <a>vCard object</a> to be processed by the <a>user
  2.1615 -        agent</a> according to the <a>rule for storing a Contact resource</a>.
  2.1616 -        </p>
  2.1617 -
  2.1618 -        <p>
  2.1619 -        The examples below show two methods for updating an existing Contact in the user's unified address
  2.1620 -        book by maintaining a valid UID property while changing other parameters of the Contact card. The user
  2.1621 -        is then required to click on the resulting anchor element to download the modified Contact
  2.1622 -        resource.
  2.1623 -        </p>
  2.1624 -
  2.1625 -        <div class="example">
  2.1626 -          <pre class="sh_javascript">
  2.1627 -  &lt;a id="vcard"&gt;Save our Contact Details&lt;/a&gt;
  2.1628 -
  2.1629 -  &lt;script type="text/javascript"&gt;
  2.1630 -    // Obtain a single existing Contact object resulting from navigator.contacts.find()
  2.1631 -    var existingContactObj = ...;
  2.1632 -  
  2.1633 -    var vcard = 'BEGIN:VCARD\r\n' +
  2.1634 -                'VERSION:3.0\r\n' +
  2.1635 -                'UID:' + existingContactObj.id + '\r\n' + // assign the Contact.id to a UID property   
  2.1636 -                'N:Doe;John\r\n' +
  2.1637 -                'FN:John Doe\r\n' +
  2.1638 -                'TEL;HOME;VOICE:654321\r\n' +
  2.1639 -                'END:VCARD';
  2.1640 -
  2.1641 -    // assign vCard as a Data URI to an anchor element for presentation and download by the user
  2.1642 -    document.getElementById('vcard').href = "data:text/x-vcard;charset=utf-8," + encodeURIComponent( vcard ); 
  2.1643 -  &lt;/script&gt;
  2.1644 -  </pre>
  2.1645 -        </div>
  2.1646 -
  2.1647 -        <div class="example">
  2.1648 -          <pre class="sh_javascript">
  2.1649 -  &lt;a id="vcard"&gt;Update our Contact Details&lt;/a&gt;
  2.1650 -
  2.1651 -  &lt;script type="text/javascript"&gt;
  2.1652 -    // Obtain a single existing Contact object resulting from navigator.contacts.find()
  2.1653 -    var existingContactObj = ...;
  2.1654 -  
  2.1655 -    // Modify some parameters as required. e.g. add a new phone number
  2.1656 -    existingContactObj.phoneNumbers.push({
  2.1657 -      type: 'home', 
  2.1658 -      value: '654321'
  2.1659 -    });
  2.1660 -
  2.1661 -    // With the existing Contact object, create an ArrayBuffer consisting of valid vCard 
  2.1662 -    // syntax (out of scope) making sure to set the resulting vCard UID property to 
  2.1663 -    // the id parameter returned in the existing Contact object
  2.1664 -    var vCardObj = getVCard( existingContactObj );
  2.1665 -
  2.1666 -    // create a new vCard Blob [[FILE-WRITER]]
  2.1667 -    var contactBlobBuilder = new BlobBuilder();
  2.1668 -    contactBlobBuilder.append( vCardObj );
  2.1669 -    var contactBlob = contactBlobBuilder.getBlob( "text/x-vcard" );
  2.1670 -
  2.1671 -    // obtain a vCard Blob URL [[FILE-API]]
  2.1672 -    var contactBlobURL = window.URL.createObjectUrl( contactBlob );
  2.1673 -
  2.1674 -    // assign vCard Blob URL to an anchor element for presentation and download by the user
  2.1675 -    document.getElementById('vcard').href = contactBlobURL; 
  2.1676 -  &lt;/script&gt;
  2.1677 -  </pre>
  2.1678 -        </div>
  2.1679 -      </section>
  2.1680 -    </section>
  2.1681    </body>
  2.1682  </html>
     3.1 --- a/gallery/index.html	Mon Sep 03 15:35:05 2012 +0200
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,715 +0,0 @@
     3.4 -<!DOCTYPE html>
     3.5 -<!-- saved from url=(0035)http://dev.w3.org/2009/dap/gallery/ -->
     3.6 -<html lang="en" dir="ltr">
     3.7 -	<head>
     3.8 -		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
     3.9 -  	<title>The Gallery API</title>  
    3.10 -  	
    3.11 -<style type="text/css">
    3.12 -/*****************************************************************
    3.13 - * ReSpec CSS
    3.14 - * Robin Berjon (robin at berjon dot com)
    3.15 - * v0.05 - 2009-07-31
    3.16 - *****************************************************************/
    3.17 -
    3.18 -
    3.19 -/* --- INLINES --- */
    3.20 -em.rfc2119 { 
    3.21 -    text-transform:     lowercase;
    3.22 -    font-variant:       small-caps;
    3.23 -    font-style:         normal;
    3.24 -    color:              #900;
    3.25 -}
    3.26 -
    3.27 -h1 acronym, h2 acronym, h3 acronym, h4 acronym, h5 acronym, h6 acronym, a acronym,
    3.28 -h1 abbr, h2 abbr, h3 abbr, h4 abbr, h5 abbr, h6 abbr, a abbr {
    3.29 -    border: none;
    3.30 -}
    3.31 -
    3.32 -dfn {
    3.33 -    font-weight:    bold;
    3.34 -}
    3.35 -
    3.36 -a.internalDFN {
    3.37 -    color:  inherit;
    3.38 -    border-bottom:  1px solid #99c;
    3.39 -    text-decoration:    none;
    3.40 -}
    3.41 -
    3.42 -a.externalDFN {
    3.43 -    color:  inherit;
    3.44 -    border-bottom:  1px dotted #ccc;
    3.45 -    text-decoration:    none;
    3.46 -}
    3.47 -
    3.48 -a.bibref {
    3.49 -    text-decoration:    none;
    3.50 -}
    3.51 -
    3.52 -code {
    3.53 -    color:  #ff4500;
    3.54 -}
    3.55 -
    3.56 -
    3.57 -/* --- WEB IDL --- */
    3.58 -pre.idl {
    3.59 -    border-top: 1px solid #90b8de;
    3.60 -    border-bottom: 1px solid #90b8de;
    3.61 -    padding:    1em;
    3.62 -    line-height:    120%;
    3.63 -}
    3.64 -
    3.65 -pre.idl::before {
    3.66 -    content:    "WebIDL";
    3.67 -    display:    block;
    3.68 -    width:      150px;
    3.69 -    background: #90b8de;
    3.70 -    color:  #fff;
    3.71 -    font-family:    initial;
    3.72 -    padding:    3px;
    3.73 -    font-weight:    bold;
    3.74 -    margin: -1em 0 1em -1em;
    3.75 -}
    3.76 -
    3.77 -.idlType {
    3.78 -    color:  #ff4500;
    3.79 -    font-weight:    bold;
    3.80 -    text-decoration:    none;
    3.81 -}
    3.82 -
    3.83 -/*.idlModule*/
    3.84 -/*.idlModuleID*/
    3.85 -/*.idlInterface*/
    3.86 -.idlInterfaceID, .idlDictionaryID {
    3.87 -    font-weight:    bold;
    3.88 -    color:  #005a9c;
    3.89 -}
    3.90 -
    3.91 -.idlSuperclass {
    3.92 -    font-style: italic;
    3.93 -    color:  #005a9c;
    3.94 -}
    3.95 -
    3.96 -/*.idlAttribute*/
    3.97 -.idlAttrType, .idlFieldType, .idlMemberType {
    3.98 -    color:  #005a9c;
    3.99 -}
   3.100 -.idlAttrName, .idlFieldName, .idlMemberName {
   3.101 -    color:  #ff4500;
   3.102 -}
   3.103 -.idlAttrName a, .idlFieldName a, .idlMemberName a {
   3.104 -    color:  #ff4500;
   3.105 -    border-bottom:  1px dotted #ff4500;
   3.106 -    text-decoration: none;
   3.107 -}
   3.108 -
   3.109 -/*.idlMethod*/
   3.110 -.idlMethType {
   3.111 -    color:  #005a9c;
   3.112 -}
   3.113 -.idlMethName {
   3.114 -    color:  #ff4500;
   3.115 -}
   3.116 -.idlMethName a {
   3.117 -    color:  #ff4500;
   3.118 -    border-bottom:  1px dotted #ff4500;
   3.119 -    text-decoration: none;
   3.120 -}
   3.121 -
   3.122 -/*.idlParam*/
   3.123 -.idlParamType {
   3.124 -    color:  #005a9c;
   3.125 -}
   3.126 -.idlParamName {
   3.127 -    font-style: italic;
   3.128 -}
   3.129 -
   3.130 -.extAttr {
   3.131 -    color:  #666;
   3.132 -}
   3.133 -
   3.134 -/*.idlConst*/
   3.135 -.idlConstType {
   3.136 -    color:  #005a9c;
   3.137 -}
   3.138 -.idlConstName {
   3.139 -    color:  #ff4500;
   3.140 -}
   3.141 -.idlConstName a {
   3.142 -    color:  #ff4500;
   3.143 -    border-bottom:  1px dotted #ff4500;
   3.144 -    text-decoration: none;
   3.145 -}
   3.146 -
   3.147 -/*.idlException*/
   3.148 -.idlExceptionID {
   3.149 -    font-weight:    bold;
   3.150 -    color:  #c00;
   3.151 -}
   3.152 -
   3.153 -.idlTypedefID, .idlTypedefType {
   3.154 -    color:  #005a9c;
   3.155 -}
   3.156 -
   3.157 -.idlRaises, .idlRaises a.idlType, .idlRaises a.idlType code, .excName a, .excName a code {
   3.158 -    color:  #c00;
   3.159 -    font-weight:    normal;
   3.160 -}
   3.161 -
   3.162 -.excName a {
   3.163 -    font-family:    monospace;
   3.164 -}
   3.165 -
   3.166 -.idlRaises a.idlType, .excName a.idlType {
   3.167 -    border-bottom:  1px dotted #c00;
   3.168 -}
   3.169 -
   3.170 -.excGetSetTrue, .excGetSetFalse, .prmNullTrue, .prmNullFalse, .prmOptTrue, .prmOptFalse {
   3.171 -    width:  45px;
   3.172 -    text-align: center;
   3.173 -}
   3.174 -.excGetSetTrue, .prmNullTrue, .prmOptTrue { color:  #0c0; }
   3.175 -.excGetSetFalse, .prmNullFalse, .prmOptFalse { color:  #c00; }
   3.176 -
   3.177 -.idlImplements a {
   3.178 -    font-weight:    bold;
   3.179 -}
   3.180 -
   3.181 -dl.attributes, dl.methods, dl.constants, dl.fields, dl.dictionary-members {
   3.182 -    margin-left:    2em;
   3.183 -}
   3.184 -
   3.185 -.attributes dt, .methods dt, .constants dt, .fields dt, .dictionary-members dt {
   3.186 -    font-weight:    normal;
   3.187 -}
   3.188 -
   3.189 -.attributes dt code, .methods dt code, .constants dt code, .fields dt code, .dictionary-members dt code {
   3.190 -    font-weight:    bold;
   3.191 -    color:  #000;
   3.192 -    font-family:    monospace;
   3.193 -}
   3.194 -
   3.195 -.attributes dt code, .fields dt code, .dictionary-members dt code {
   3.196 -    background:  #ffffd2;
   3.197 -}
   3.198 -
   3.199 -.attributes dt .idlAttrType code, .fields dt .idlFieldType code, .dictionary-members dt .idlMemberType code {
   3.200 -    color:  #005a9c;
   3.201 -    background:  transparent;
   3.202 -    font-family:    inherit;
   3.203 -    font-weight:    normal;
   3.204 -    font-style: italic;
   3.205 -}
   3.206 -
   3.207 -.methods dt code {
   3.208 -    background:  #d9e6f8;
   3.209 -}
   3.210 -
   3.211 -.constants dt code {
   3.212 -    background:  #ddffd2;
   3.213 -}
   3.214 -
   3.215 -.attributes dd, .methods dd, .constants dd, .fields dd, .dictionary-members dd {
   3.216 -    margin-bottom:  1em;
   3.217 -}
   3.218 -
   3.219 -table.parameters, table.exceptions {
   3.220 -    border-spacing: 0;
   3.221 -    border-collapse:    collapse;
   3.222 -    margin: 0.5em 0;
   3.223 -    width:  100%;
   3.224 -}
   3.225 -table.parameters { border-bottom:  1px solid #90b8de; }
   3.226 -table.exceptions { border-bottom:  1px solid #deb890; }
   3.227 -
   3.228 -.parameters th, .exceptions th {
   3.229 -    color:  #fff;
   3.230 -    padding:    3px 5px;
   3.231 -    text-align: left;
   3.232 -    font-family:    initial;
   3.233 -    font-weight:    normal;
   3.234 -    text-shadow:    #666 1px 1px 0;
   3.235 -}
   3.236 -.parameters th { background: #90b8de; }
   3.237 -.exceptions th { background: #deb890; }
   3.238 -
   3.239 -.parameters td, .exceptions td {
   3.240 -    padding:    3px 10px;
   3.241 -    border-top: 1px solid #ddd;
   3.242 -    vertical-align: top;
   3.243 -}
   3.244 -
   3.245 -.parameters tr:first-child td, .exceptions tr:first-child td {
   3.246 -    border-top: none;
   3.247 -}
   3.248 -
   3.249 -.parameters td.prmName, .exceptions td.excName, .exceptions td.excCodeName {
   3.250 -    width:  100px;
   3.251 -}
   3.252 -
   3.253 -.parameters td.prmType {
   3.254 -    width:  120px;
   3.255 -}
   3.256 -
   3.257 -table.exceptions table {
   3.258 -    border-spacing: 0;
   3.259 -    border-collapse:    collapse;
   3.260 -    width:  100%;
   3.261 -}
   3.262 -
   3.263 -/* --- TOC --- */
   3.264 -.toc a {
   3.265 -    text-decoration:    none;
   3.266 -}
   3.267 -
   3.268 -a .secno {
   3.269 -    color:  #000;
   3.270 -}
   3.271 -
   3.272 -/* --- TABLE --- */
   3.273 -table.simple {
   3.274 -    border-spacing: 0;
   3.275 -    border-collapse:    collapse;
   3.276 -    border-bottom:  3px solid #005a9c;
   3.277 -}
   3.278 -
   3.279 -.simple th {
   3.280 -    background: #005a9c;
   3.281 -    color:  #fff;
   3.282 -    padding:    3px 5px;
   3.283 -    text-align: left;
   3.284 -}
   3.285 -
   3.286 -.simple th[scope="row"] {
   3.287 -    background: inherit;
   3.288 -    color:  inherit;
   3.289 -    border-top: 1px solid #ddd;
   3.290 -}
   3.291 -
   3.292 -.simple td {
   3.293 -    padding:    3px 10px;
   3.294 -    border-top: 1px solid #ddd;
   3.295 -}
   3.296 -
   3.297 -.simple tr:nth-child(even) {
   3.298 -    background: #f0f6ff;
   3.299 -}
   3.300 -
   3.301 -/* --- DL --- */
   3.302 -.section dd > p:first-child {
   3.303 -    margin-top: 0;
   3.304 -}
   3.305 -
   3.306 -.section dd > p:last-child {
   3.307 -    margin-bottom: 0;
   3.308 -}
   3.309 -
   3.310 -.section dd {
   3.311 -    margin-bottom:  1em;
   3.312 -}
   3.313 -
   3.314 -.section dl.attrs dd, .section dl.eldef dd {
   3.315 -    margin-bottom:  0;
   3.316 -}
   3.317 -
   3.318 -/* --- EXAMPLES --- */
   3.319 -pre.example {
   3.320 -    border-top: 1px solid #ff4500;
   3.321 -    border-bottom: 1px solid #ff4500;
   3.322 -    padding:    1em;
   3.323 -    margin-top: 1em;
   3.324 -}
   3.325 -
   3.326 -pre.example::before {
   3.327 -    content:    "Example";
   3.328 -    display:    block;
   3.329 -    width:      150px;
   3.330 -    background: #ff4500;
   3.331 -    color:  #fff;
   3.332 -    font-family:    initial;
   3.333 -    padding:    3px;
   3.334 -    font-weight:    bold;
   3.335 -    margin: -1em 0 1em -1em;
   3.336 -}
   3.337 -
   3.338 -/* --- EDITORIAL NOTES --- */
   3.339 -.issue {
   3.340 -    padding:    1em;
   3.341 -    margin: 1em 0em 0em;
   3.342 -    border: 1px solid #f00;
   3.343 -    background: #ffc;
   3.344 -}
   3.345 -
   3.346 -.issue::before {
   3.347 -    content:    "Issue";
   3.348 -    display:    block;
   3.349 -    width:  150px;
   3.350 -    margin: -1.5em 0 0.5em 0;
   3.351 -    font-weight:    bold;
   3.352 -    border: 1px solid #f00;
   3.353 -    background: #fff;
   3.354 -    padding:    3px 1em;
   3.355 -}
   3.356 -
   3.357 -.note {
   3.358 -    margin: 1em 0em 0em;
   3.359 -    padding:    1em;
   3.360 -    border: 2px solid #cff6d9;
   3.361 -    background: #e2fff0;
   3.362 -}
   3.363 -
   3.364 -.note::before {
   3.365 -    content:    "Note";
   3.366 -    display:    block;
   3.367 -    width:  150px;
   3.368 -    margin: -1.5em 0 0.5em 0;
   3.369 -    font-weight:    bold;
   3.370 -    border: 1px solid #cff6d9;
   3.371 -    background: #fff;
   3.372 -    padding:    3px 1em;
   3.373 -}
   3.374 -
   3.375 -/* --- Best Practices --- */
   3.376 -div.practice {
   3.377 -    border: solid #bebebe 1px;
   3.378 -    margin: 2em 1em 1em 2em;
   3.379 -}
   3.380 -
   3.381 -span.practicelab {
   3.382 -    margin: 1.5em 0.5em 1em 1em;
   3.383 -    font-weight: bold;
   3.384 -    font-style: italic;
   3.385 -}
   3.386 -
   3.387 -span.practicelab   { background: #dfffff; }
   3.388 -
   3.389 -span.practicelab {
   3.390 -    position: relative;
   3.391 -    padding: 0 0.5em;
   3.392 -    top: -1.5em;
   3.393 -}
   3.394 -
   3.395 -p.practicedesc {
   3.396 -    margin: 1.5em 0.5em 1em 1em;
   3.397 -}
   3.398 -
   3.399 -@media screen {
   3.400 -    p.practicedesc {
   3.401 -        position: relative;
   3.402 -        top: -2em;
   3.403 -        padding: 0;
   3.404 -        margin: 1.5em 0.5em -1em 1em;
   3.405 -    }
   3.406 -}
   3.407 -
   3.408 -/* --- SYNTAX HIGHLIGHTING --- */
   3.409 -pre.sh_sourceCode {
   3.410 -  background-color: white;
   3.411 -  color: black;
   3.412 -  font-style: normal;
   3.413 -  font-weight: normal;
   3.414 -}
   3.415 -
   3.416 -pre.sh_sourceCode .sh_keyword { color: #005a9c; font-weight: bold; }           /* language keywords */
   3.417 -pre.sh_sourceCode .sh_type { color: #666; }                            /* basic types */
   3.418 -pre.sh_sourceCode .sh_usertype { color: teal; }                             /* user defined types */
   3.419 -pre.sh_sourceCode .sh_string { color: red; font-family: monospace; }        /* strings and chars */
   3.420 -pre.sh_sourceCode .sh_regexp { color: orange; font-family: monospace; }     /* regular expressions */
   3.421 -pre.sh_sourceCode .sh_specialchar { color: 	#ffc0cb; font-family: monospace; }  /* e.g., \n, \t, \\ */
   3.422 -pre.sh_sourceCode .sh_comment { color: #A52A2A; font-style: italic; }         /* comments */
   3.423 -pre.sh_sourceCode .sh_number { color: purple; }                             /* literal numbers */
   3.424 -pre.sh_sourceCode .sh_preproc { color: #00008B; font-weight: bold; }       /* e.g., #include, import */
   3.425 -pre.sh_sourceCode .sh_symbol { color: blue; }                            /* e.g., *, + */
   3.426 -pre.sh_sourceCode .sh_function { color: black; font-weight: bold; }         /* function calls and declarations */
   3.427 -pre.sh_sourceCode .sh_cbracket { color: red; }                              /* block brackets (e.g., {, }) */
   3.428 -pre.sh_sourceCode .sh_todo { font-weight: bold; background-color: #00FFFF; }   /* TODO and FIXME */
   3.429 -
   3.430 -/* Predefined variables and functions (for instance glsl) */
   3.431 -pre.sh_sourceCode .sh_predef_var { color: #00008B; }
   3.432 -pre.sh_sourceCode .sh_predef_func { color: #00008B; font-weight: bold; }
   3.433 -
   3.434 -/* for OOP */
   3.435 -pre.sh_sourceCode .sh_classname { color: teal; }
   3.436 -
   3.437 -/* line numbers (not yet implemented) */
   3.438 -pre.sh_sourceCode .sh_linenum { display: none; }
   3.439 -
   3.440 -/* Internet related */
   3.441 -pre.sh_sourceCode .sh_url { color: blue; text-decoration: underline; font-family: monospace; }
   3.442 -
   3.443 -/* for ChangeLog and Log files */
   3.444 -pre.sh_sourceCode .sh_date { color: blue; font-weight: bold; }
   3.445 -pre.sh_sourceCode .sh_time, pre.sh_sourceCode .sh_file { color: #00008B; font-weight: bold; }
   3.446 -pre.sh_sourceCode .sh_ip, pre.sh_sourceCode .sh_name { color: #006400; }
   3.447 -
   3.448 -/* for Prolog, Perl... */
   3.449 -pre.sh_sourceCode .sh_variable { color: #006400; }
   3.450 -
   3.451 -/* for LaTeX */
   3.452 -pre.sh_sourceCode .sh_italics { color: #006400; font-style: italic; }
   3.453 -pre.sh_sourceCode .sh_bold { color: #006400; font-weight: bold; }
   3.454 -pre.sh_sourceCode .sh_underline { color: #006400; text-decoration: underline; }
   3.455 -pre.sh_sourceCode .sh_fixed { color: green; font-family: monospace; }
   3.456 -pre.sh_sourceCode .sh_argument { color: #006400; }
   3.457 -pre.sh_sourceCode .sh_optionalargument { color: purple; }
   3.458 -pre.sh_sourceCode .sh_math { color: orange; }
   3.459 -pre.sh_sourceCode .sh_bibtex { color: blue; }
   3.460 -
   3.461 -/* for diffs */
   3.462 -pre.sh_sourceCode .sh_oldfile { color: orange; }
   3.463 -pre.sh_sourceCode .sh_newfile { color: #006400; }
   3.464 -pre.sh_sourceCode .sh_difflines { color: blue; }
   3.465 -
   3.466 -/* for css */
   3.467 -pre.sh_sourceCode .sh_selector { color: purple; }
   3.468 -pre.sh_sourceCode .sh_property { color: blue; }
   3.469 -pre.sh_sourceCode .sh_value { color: #006400; font-style: italic; }
   3.470 -
   3.471 -/* other */
   3.472 -pre.sh_sourceCode .sh_section { color: black; font-weight: bold; }
   3.473 -pre.sh_sourceCode .sh_paren { color: red; }
   3.474 -pre.sh_sourceCode .sh_attribute { color: #006400; }
   3.475 -
   3.476 -</style><link href="http://www.w3.org/StyleSheets/TR/W3C-ED" rel="stylesheet" type="text/css" charset="utf-8"></head>
   3.477 -
   3.478 -<body style="display: inherit; "><div class="head"><p><a href="http://www.w3.org/"><img width="72" height="48" src="http://www.w3.org/Icons/w3c_home" alt="W3C"></a></p><h1 class="title" id="title">The Gallery <acronym title="Application Programming Interface">API</acronym></h1><h2 id="w3c-editor-s-draft-02-may-2012"><acronym title="World Wide Web Consortium">W3C</acronym> Editor's Draft 02 May 2012</h2><dl><dt>This version:</dt><dd><a href="http://dev.w3.org/2009/dap/gallery/">http://dev.w3.org/2009/dap/gallery/</a></dd><dt>Latest published version:</dt><dd><a href="http://www.w3.org/TR/gallery/">http://www.w3.org/TR/gallery/</a></dd><dt>Latest editor's draft:</dt><dd><a href="http://dev.w3.org/2009/dap/gallery/">http://dev.w3.org/2009/dap/gallery/</a></dd><dt>Previous version:</dt><dd>none</dd><dt>Editors:</dt>
   3.479 -<dd><span>송정기(Jungkee Song)</span>, <a href="http://www.samsung.com/sec/">Samsung Electronics Co., Ltd.</a></dd>
   3.480 -<dd><span>이원석(Wonsuk Lee)</span>, <a href="http://www.samsung.com/sec/">Samsung Electronics Co., Ltd.</a></dd>
   3.481 -</dl><p class="copyright"><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> © 2012 <a href="http://www.w3.org/"><acronym title="World Wide Web Consortium">W3C</acronym></a><sup>®</sup> (<a href="http://www.csail.mit.edu/"><acronym title="Massachusetts Institute of Technology">MIT</acronym></a>, <a href="http://www.ercim.eu/"><acronym title="European Research Consortium for Informatics and Mathematics">ERCIM</acronym></a>, <a href="http://www.keio.ac.jp/">Keio</a>), All Rights Reserved. <acronym title="World Wide Web Consortium">W3C</acronym> <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>, <a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a> and <a href="http://www.w3.org/Consortium/Legal/copyright-documents">document use</a> rules apply.</p><hr></div>
   3.482 -
   3.483 -<div id="abstract" class="introductory section"><h2>Abstract</h2><p>This specification defines a mechanism to pick and search media (image, video, audio) contents along with related metadata from media galleries.<br><br>
   3.484 -	This specification uses Web Intents to find and locate the registered galleries.
   3.485 -</p></div><div id="sotd" class="introductory section"><h2>Status of This Document</h2><p><em>This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current <acronym title="World Wide Web Consortium">W3C</acronym> publications and the latest revision of this technical report can be found in the <a href="http://www.w3.org/TR/"><acronym title="World Wide Web Consortium">W3C</acronym> technical reports index</a> at http://www.w3.org/TR/.</em></p><p>This document was published by the <a href="http://www.w3.org/2009/dap/">Device APIs Working Group</a> as an Editor's Draft. If you wish to make comments regarding this document, please send them to <a href="mailto:public-device-apis@w3.org">public-device-apis@w3.org</a> (<a href="mailto:public-device-apis-request@w3.org?subject=subscribe">subscribe</a>, <a href="http://lists.w3.org/Archives/Public/public-device-apis/">archives</a>). All feedback is welcome.</p><p>Publication as an Editor's Draft does not imply endorsement by the <acronym title="World Wide Web Consortium">W3C</acronym> Membership. This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress.</p><p>This document was produced by a group operating under the <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5 February 2004 <acronym title="World Wide Web Consortium">W3C</acronym> Patent Policy</a>. <acronym title="World Wide Web Consortium">W3C</acronym> maintains a <a href="http://www.w3.org/2004/01/pp-impl/43696/status" rel="disclosure">public list of any patent disclosures</a> made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/#def-essential">Essential Claim(s)</a> must disclose the information in accordance with <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/#sec-Disclosure">section 6 of the <acronym title="World Wide Web Consortium">W3C</acronym> Patent Policy</a>.</p></div>
   3.486 -	<div id="toc" class="section"><h2 class="introductory">Table of Contents</h2><ul class="toc">
   3.487 -		<li class="tocline"><a href="http://dev.w3.org/2009/dap/gallery/#conformance" class="tocxref"><span class="secno">1. </span>Conformance</a></li>
   3.488 -		<li class="tocline"><a href="http://dev.w3.org/2009/dap/gallery/#introduction" class="tocxref"><span class="secno">2. </span>Introduction</a><ul class="toc">
   3.489 -			<li class="tocline"><a href="http://dev.w3.org/2009/dap/gallery/#usage-examples" class="tocxref"><span class="secno">2.1 </span>Usage Examples</a></li></ul></li>
   3.490 -		<li class="tocline"><a href="http://dev.w3.org/2009/dap/gallery/#api-description" class="tocxref"><span class="secno">3. </span><acronym title="Application Programming Interface">API</acronym> Description</a><ul class="toc">
   3.491 -			<li class="tocline"><a href="http://dev.w3.org/2009/dap/gallery/#media-object" class="tocxref"><span class="secno">3.1 </span><code>MediaObject</code> dictionary</a><ul class="toc">
   3.492 -				<li class="tocline"><a href="http://dev.w3.org/2009/dap/gallery/#attributes" class="tocxref"><span class="secno">3.1.1 </span>Dictionary <code>MediaObject</code> Members</a></li>
   3.493 -				</ul></li></ul></li>
   3.494 -		<li class="tocline"><a href="http://dev.w3.org/2009/dap/gallery/#use-cases-and-requirements" class="tocxref"><span class="secno">4. </span>Use Cases and Requirements</a><ul class="toc">
   3.495 -			<li class="tocline"><a href="http://dev.w3.org/2009/dap/gallery/#use-cases" class="tocxref"><span class="secno">4.1 </span>Use Cases</a></li>
   3.496 -			<li class="tocline"><a href="http://dev.w3.org/2009/dap/gallery/#requirements" class="tocxref"><span class="secno">4.2 </span>Requirements</a></li></ul></li>
   3.497 -		<li class="tocline"><a href="http://dev.w3.org/2009/dap/gallery/#related-documents" class="tocxref"><span class="secno">A. </span>Related documents</a></li>
   3.498 -		<li class="tocline"><a href="http://dev.w3.org/2009/dap/gallery/#features-for-future-consideration" class="tocxref"><span class="secno">B. </span>Features for Future Consideration</a></li>
   3.499 -		<li class="tocline"><a href="http://dev.w3.org/2009/dap/gallery/#acknowledgements" class="tocxref"><span class="secno">C. </span>Acknowledgements</a></li>
   3.500 -		<li class="tocline"><a href="http://dev.w3.org/2009/dap/gallery/#references" class="tocxref"><span class="secno">D. </span>References</a><ul class="toc">
   3.501 -			<li class="tocline"><a href="http://dev.w3.org/2009/dap/gallery/#normative-references" class="tocxref"><span class="secno">D.1 </span>Normative references</a></li>
   3.502 -			<li class="tocline"><a href="http://dev.w3.org/2009/dap/gallery/#informative-references" class="tocxref"><span class="secno">D.2 </span>Informative references</a></li></ul></li></ul>
   3.503 -	</div>
   3.504 -
   3.505 -<div id="conformance" class="section"><!--OddPage--><h2><span class="secno">1. </span>Conformance</h2><p>As well as sections marked as non-normative, all authoring guidelines, diagrams, examples, and notes in this specification are non-normative. Everything else in this specification is normative.</p>
   3.506 -<p>The key words <em class="rfc2119" title="must">must</em>, <em class="rfc2119" title="must not">must not</em>, <em class="rfc2119" title="required">required</em>, <em class="rfc2119" title="should">should</em>, <em class="rfc2119" title="should not">should not</em>, <em class="rfc2119" title="recommended">recommended</em>, <em class="rfc2119" title="may">may</em>, and <em class="rfc2119" title="optional">optional</em> in this specification are to be interpreted as described in [<cite><a class="bibref" rel="biblioentry" href="http://dev.w3.org/2009/dap/gallery/#bib-RFC2119">RFC2119</a></cite>].</p>
   3.507 -
   3.508 -</div>
   3.509 -
   3.510 -<div class="informative section" id="introduction">
   3.511 -
   3.512 -	<!--OddPage--><h2><span class="secno">2. </span>Introduction</h2><p><em>This section is non-normative.</em></p>
   3.513 -	<p>The Gallery <acronym title="Application Programming Interface">API</acronym> defines a high-level interface for accessing media gallery located on the device. A media gallery is a collection of media objects such as video, audio and image. </p>
   3.514 -	<p class="note">To achieve the simplicity in the browser level context, this specification defines only the read-only functionalities.</p>
   3.515 -	<div id="usage-examples" class="section">
   3.516 -		<h3><span class="secno">2.1 </span>Usage Examples</h3>
   3.517 -		<p>The following code shows how to work with the gallery <acronym title="Application Programming Interface">API</acronym>.</p>
   3.518 -		<p>Example of a image gallery service. The code registers a pick action for image pick service:</p>
   3.519 -		<div>
   3.520 -			<pre class="example">&lt;html&gt;
   3.521 -&lt;head&gt;
   3.522 -&lt;meta charset='utf-8' /&gt;
   3.523 -&lt;title&gt;Image Gallery Service&lt;/title&gt;
   3.524 -&lt;intent action=”http://webintents.org/pick” 
   3.525 -	type=”image/*” 
   3.526 -	href=”http://example.org/ImageService/” 
   3.527 -	title=”Example Image Service” /&gt;
   3.528 -&lt;/head&gt;
   3.529 -			</pre>
   3.530 -		</div>
   3.531 -		<p>A web application start a Web Intent request to pick images from registered galleries.</p>
   3.532 -		<div>
   3.533 -			<pre class="example sh_javascript_dom sh_sourceCode"><span class="sh_comment">// Client-ends request media service using Web Intents <b>pick</b> action</span>
   3.534 -<span class="sh_comment">// The request of <b>image</b> pick service</span>
   3.535 -
   3.536 -<span class="sh_keyword">var</span> intent <span class="sh_symbol">=</span> <span class="sh_keyword">new</span> <span class="sh_predef_func">Intent</span><span class="sh_symbol">({</span>
   3.537 -                        action<span class="sh_symbol">:</span> <span class="sh_string">"http://webintents.org/pick"</span><span class="sh_symbol">,</span>
   3.538 -                        type<span class="sh_symbol">:</span> <span class="sh_string">"image/*"</span><span class="sh_symbol">,</span>
   3.539 -                        extras<span class="sh_symbol">:</span> <span class="sh_symbol">{</span> filter<span class="sh_symbol">:</span> <span class="sh_symbol">{</span> name<span class="sh_symbol">:</span> <span class="sh_string">"Seoul"</span> <span class="sh_symbol">},</span> multiple<span class="sh_symbol">:</span> <span class="sh_predef_var">true</span> <span class="sh_symbol">}</span>
   3.540 -                        <span class="sh_symbol">});</span>
   3.541 -                        
   3.542 -navigator<span class="sh_symbol">.</span><span class="sh_predef_func">startActivity</span><span class="sh_symbol">(</span>intent<span class="sh_symbol">,</span> galleryResponse<span class="sh_symbol">);</span>
   3.543 -
   3.544 -<span class="sh_keyword">function</span> <span class="sh_predef_func">galleryResponse</span><span class="sh_symbol">(</span>data<span class="sh_symbol">)</span> <span class="sh_symbol">{</span>
   3.545 -    <span class="sh_comment">// Parse data encoded in an array of objects</span>
   3.546 -<span class="sh_symbol">}</span></pre>
   3.547 -		</div>
   3.548 -		<p>Example of a video gallery service. The code registers a pick action for video pick service:</p>
   3.549 -		<div>
   3.550 -			<pre class="example">&lt;html&gt;
   3.551 -&lt;head&gt;
   3.552 -&lt;meta charset='utf-8' /&gt;
   3.553 -&lt;title&gt;Video Gallery Service&lt;/title&gt;
   3.554 -&lt;intent action=”http://webintents.org/pick” 
   3.555 -	type=”video/*” 
   3.556 -	href=”http://example.org/VideoService/” 
   3.557 -	title=”Example Video Service” /&gt;
   3.558 -&lt;/head&gt;
   3.559 -			</pre>
   3.560 -		</div>
   3.561 -		<p>A web application start a Web Intent request to pick videos from registered galleries.</p>
   3.562 -		<div>
   3.563 -			<pre class="example sh_javascript_dom sh_sourceCode"><span class="sh_comment">// Client-ends request media service using Web Intents <b>pick</b> action</span>
   3.564 -<span class="sh_comment">// The request of <b>video</b> pick service</span>
   3.565 -
   3.566 -<span class="sh_keyword">var</span> intent <span class="sh_symbol">=</span> <span class="sh_keyword">new</span> <span class="sh_predef_func">Intent</span><span class="sh_symbol">({</span>
   3.567 -                        action<span class="sh_symbol">:</span> <span class="sh_string">"http://webintents.org/pick"</span><span class="sh_symbol">,</span>
   3.568 -                        type<span class="sh_symbol">:</span> <span class="sh_string">"video/*"</span><span class="sh_symbol">,</span>
   3.569 -                        extras<span class="sh_symbol">:</span> <span class="sh_symbol">{</span> filter<span class="sh_symbol">:</span> <span class="sh_symbol">{</span> name<span class="sh_symbol">:</span> <span class="sh_string">"Family"</span> <span class="sh_symbol">},</span> multiple<span class="sh_symbol">:</span> <span class="sh_predef_var">true</span> <span class="sh_symbol">}</span>
   3.570 -                        <span class="sh_symbol">});</span>
   3.571 -                        
   3.572 -navigator<span class="sh_symbol">.</span><span class="sh_predef_func">startActivity</span><span class="sh_symbol">(</span>intent<span class="sh_symbol">,</span> galleryResponse<span class="sh_symbol">);</span>
   3.573 -
   3.574 -<span class="sh_keyword">function</span> <span class="sh_predef_func">galleryResponse</span><span class="sh_symbol">(</span>data<span class="sh_symbol">)</span> <span class="sh_symbol">{</span>
   3.575 -    <span class="sh_comment">// Parse data encoded in an array of objects</span>
   3.576 -<span class="sh_symbol">}</span></pre>
   3.577 -		</div>
   3.578 -		<p>Example of a audio gallery service. The code registers a pick action for audio pick service:</p>
   3.579 -		<div>
   3.580 -			<pre class="example">&lt;html&gt;
   3.581 -&lt;head&gt;
   3.582 -&lt;meta charset='utf-8' /&gt;
   3.583 -&lt;title&gt;Audio Gallery Service&lt;/title&gt;
   3.584 -&lt;intent action=”http://webintents.org/pick” 
   3.585 -	type=”audio/*” 
   3.586 -	href=”http://example.org/AudioService/” 
   3.587 -	title=”Example Audio Service” /&gt;
   3.588 -&lt;/head&gt;
   3.589 -			</pre>
   3.590 -		</div>
   3.591 -		<p>A web application start a Web Intent request to pick audios from registered galleries.</p>
   3.592 -		<div>
   3.593 -			<pre class="example sh_javascript_dom sh_sourceCode"><span class="sh_comment">// Client-ends request media service using Web Intents <b>pick</b> action</span>
   3.594 -<span class="sh_comment">// The request of <b>audio</b> pick service</span>
   3.595 -
   3.596 -<span class="sh_keyword">var</span> intent <span class="sh_symbol">=</span> <span class="sh_keyword">new</span> <span class="sh_predef_func">Intent</span><span class="sh_symbol">({</span>
   3.597 -                        action<span class="sh_symbol">:</span> <span class="sh_string">"http://webintents.org/pick"</span><span class="sh_symbol">,</span>
   3.598 -                        type<span class="sh_symbol">:</span> <span class="sh_string">"audio/*"</span><span class="sh_symbol">,</span>
   3.599 -                        extras<span class="sh_symbol">:</span> <span class="sh_symbol">{</span> filter<span class="sh_symbol">:</span> <span class="sh_symbol">{</span> name<span class="sh_symbol">:</span> <span class="sh_string">"Love"</span> <span class="sh_symbol">},</span> multiple<span class="sh_symbol">:</span> <span class="sh_predef_var">true</span> <span class="sh_symbol">}</span>
   3.600 -                        <span class="sh_symbol">});</span>
   3.601 -                        
   3.602 -navigator<span class="sh_symbol">.</span><span class="sh_predef_func">startActivity</span><span class="sh_symbol">(</span>intent<span class="sh_symbol">,</span> galleryResponse<span class="sh_symbol">);</span>
   3.603 -
   3.604 -<span class="sh_keyword">function</span> <span class="sh_predef_func">galleryResponse</span><span class="sh_symbol">(</span>data<span class="sh_symbol">)</span> <span class="sh_symbol">{</span>
   3.605 -    <span class="sh_comment">// Parse data encoded in an array of objects</span>
   3.606 -<span class="sh_symbol">}</span></pre>
   3.607 -		</div>
   3.608 -		<p class="note">Mediaobject (ImageObject, VideoObject and AudioObject) in schema.org might be used as type in case Web Intents specification adopts it.</p>
   3.609 -		<p class="note">Callback gets an array of objects, data, describing the content. Objects in data, in addition to other metadata fields, have either a url or a content field that would contain a Blob (i.e. the media content.)</p>
   3.610 -	</div>
   3.611 -</div>
   3.612 -
   3.613 -<div id="api-description" class="section">
   3.614 -	<!--OddPage--><h2><span class="secno">3. </span><acronym title="Application Programming Interface">API</acronym> Description</h2>
   3.615 -	<!--section>
   3.616 -		<h2><code>Galleries</code> interface</h2>
   3.617 -		<p class="note"> More functions could be taked into account. e.g. How about finding function to the all galleries on the device? </p>
   3.618 -		<p><code>Galleries</code> interface offer access to the list of Media Galleries on the device. The number of galleries is dependent on the implementation. 
   3.619 -			As an example, in a window mobile implementation it might retrieve the gallery located in the directory "\My Documents" and another on located on the memory card.</p>
   3.620 -		
   3.621 -
   3.622 -		<dl title="[NoInterfaceObject] interface Galleries" class="idl">
   3.623 -		  <dt>MediaGalleries getGalleries() </dt>
   3.624 -		    <dd>Retrieve all galleries located on the device. </dd>
   3.625 -		</dl>		
   3.626 -	</section-->	
   3.627 -	<div id="media-object" class="section">
   3.628 -		<h3><span class="secno">3.1 </span><code>MediaObject</code> dictionary</h3>
   3.629 -		<p>The <code>MediaObject</code> dictionary exposes an object to deliver media contents and related metadata from web galleries and local galleries.</p>
   3.630 -		<p class="note">The metadata of the media contens and the search filters are to be defined.</p>
   3.631 -		<pre class="idl"><span class="idlDictionary" id="idl-def-MediaObject">dictionary</span> <span class="idlDictionaryID">MediaObject</span> {
   3.632 -<span class="idlMember">    <span class="idlMemberType"><a>readonly attribute any</a></span>    <span class="idlMemberName"><a href="#widl-MediaObject-content">content</a></span>;</span>
   3.633 -<span class="idl">};</span>
   3.634 -</pre><div id="attributes" class="section"><h4><span class="secno">3.1.1 </span>Dictionary <a class="idlType" href="#idl-def-MediaObject"><code>MediaObject</code></a> Members</h4><dl class="attributes"><dt id="widl-Gallery-length"><code>content</code> of type <span class="idlAttrType"><a>any</a></span>, readonly</dt><dd>the content of the media object.</dd></dl></div>
   3.635 -	  <h3><span class="secno">3.2 </span>Discussion</h3>
   3.636 -		<p class="note">This section is only for dicussion and will be deleted.</p>
   3.637 -		<p>
   3.638 -				</p><h4>Content delivery method:</h4>
   3.639 -				Which is a better way, using a url or a blob?<br>
   3.640 -<ul><li> a URL (Blob URI is used for local contents: http://www.w3.org/TR/FileAPI/#creating-revoking)
   3.641 -	<br>
   3.642 -  Advantage: Web application developers do not have to take complex part of blob reception.
   3.643 -  <br>
   3.644 -  Disadvantage: for remote contents, developers cannot manipulate the contents in script (other than assigning them to image/video/audio element) unless the remote service has enabled CORS.
   3.645 -</li>
   3.646 -<li> a Blob
   3.647 -	<br>
   3.648 -	Advantage: no matter whether the galleries are remote or local, developers can manipulate the received contents in the same way.
   3.649 -	<br>
   3.650 -  Disadvantage: When retrieving huge amount of data from the galleries, a naïve implementation might think it needs to download entire contents before exposing blobs. In fact, blob reading can be done, through FileReader, on demand. (FileReader even provides Progress Events, but it does require an implementation of Blob that supports this sort of usage.)
   3.651 -</li></ul>
   3.652 -				
   3.653 -			<p></p>
   3.654 -			<p>
   3.655 -				</p><h4><em>extra</em> attribute in Web Intents request</h4>
   3.656 -				When extra attribute is not given, the request is regarded a search for everything and pick just one; when extra is given, the request is regarded as a specific content search.
   3.657 -			<p></p>
   3.658 -			<p>
   3.659 -				</p><h4><em>multiple</em> attribute in <em>extra</em> parameter:</h4>
   3.660 -				When set to true, <em>mutiple</em> attribute in <em>extra</em> paramenter means a client wants to retrieve contents from multiple media sources. Search filter should filter what the user sees in the picker, and the user still decides what is returned (which can be everything of course).
   3.661 -			<p></p>
   3.662 -			<br>
   3.663 -
   3.664 -<div id="use-cases-and-requirements" class="section">
   3.665 -	<!--OddPage--><h2><span class="secno">4. </span>Use Cases and Requirements</h2>
   3.666 -		<div id="use-cases" class="section">
   3.667 -			<h3><span class="secno">4.1 </span>Use Cases</h3>
   3.668 -			<p>
   3.669 -				</p><h4 id="uc1">Picking image:</h4>
   3.670 -				A user picks an image or a set of images either from web galleries (e.g. Flickr, Piscasa, etc.) or from local gallery.				
   3.671 -			<p></p>
   3.672 -			<p>
   3.673 -				</p><h4 id="uc2">Picking video:</h4>
   3.674 -				A user picks a video or a set of videos either from web galleries (e.g. YouTube, DailyMotion, etc.) or from local gallery.
   3.675 -			<p></p>
   3.676 -			<p>
   3.677 -				</p><h4 id="uc3">Picking audio:</h4>
   3.678 -				A user picks an audio or a set of audio either from web galleries (e.g. SoundCloud, Last.fm, etc.) or from local gallery.
   3.679 -			<p></p>
   3.680 -			<br>
   3.681 -			<p class="note">Advantage: it makes integrating with popular services like Flickr, Youtube, SoundCloud a lot easier.</p>
   3.682 -		</div>
   3.683 -		<div id="requirements" class="section">
   3.684 -			<h3><span class="secno">4.2 </span>Requirements</h3>
   3.685 -			<p>The Gallery <acronym title="Application Programming Interface">API</acronym>: </p>
   3.686 -			<ul>
   3.687 -			  <li><em class="rfc2119" title="must">must</em> provide the ability to list the galleries from available sources (e.g. local storage, memory card and web services such as Flickr, YouTube, SoundCloud, etc.) – by Web Intents</li>
   3.688 -			  <li><em class="rfc2119" title="must">must</em> provide the ability to enumerate the media objects in the designated gallery.</li>
   3.689 -			  <li><em class="rfc2119" title="must">must</em> provide the ability to filter the media objects in the designated gallery. i.e. finding content inside a gallery (e.g. date, title, geolocation, etc.)</li>
   3.690 -			  <li><em class="rfc2119" title="must">must</em> provide the ability to retrieve the metadata of the media objects in the gallery (the metadata format is to be defined later through e.g. the MediaObjects in schema.org or the model in JS, etc.)</li>
   3.691 -			</ul>
   3.692 -		</div>		
   3.693 -</div>
   3.694 -
   3.695 -<div class="appendix section" id="related-documents">
   3.696 -	<!--OddPage--><h2><span class="secno">A. </span>Related documents</h2>
   3.697 -	<p>The <acronym title="Application Programming Interface">API</acronym> described in this document took inspiration from the following	documents:</p>
   3.698 -	<ul>
   3.699 -	  <li><a href="http://dvcs.w3.org/hg/web-intents/raw-file/tip/spec/Overview.html" name="WebIntents" id="WebIntents">Web Intents</acronym></a> </li>
   3.700 -	</ul>
   3.701 -</div>
   3.702 -<div id="features-for-future-consideration" class="section">
   3.703 -  <!--OddPage--><h2><span class="secno">B. </span>Features for Future Consideration</h2>
   3.704 -  <p>This is a list of features that have been discussed with respect to this version of the <acronym title="Application Programming Interface">API</acronym> but for which it has been decided that if they are
   3.705 -  included it will be in a future revision. </p>
   3.706 -  <ul>
   3.707 -    <li>...</li>
   3.708 -  </ul>
   3.709 -</div>
   3.710 -<div class="appendix section" id="acknowledgements">
   3.711 -	<!--OddPage--><h2><span class="secno">C. </span>Acknowledgements</h2>
   3.712 -	<p>Many thanks to Robin Berjon for making our lives so much easier with his cool tool.</p>
   3.713 -</div>
   3.714 -
   3.715 -
   3.716 -<div id="references" class="appendix section"><!--OddPage--><h2><span class="secno">D. </span>References</h2><div id="normative-references" class="section"><h3><span class="secno">D.1 </span>Normative references</h3><dl class="bibliography"><dt id="bib-CORE-DEVICE">[A Blob URI]</dt><dd>Arun Ranganathan; Jonas Sicking. <a href="http://www.w3.org/TR/FileAPI/#creating-revoking"><cite>A Blob URI.</cite></a> 20 October 2011. W3C Working Draft. (Work in progress.) URL: <a href="http://www.w3.org/TR/FileAPI/#creating-revoking">http://www.w3.org/TR/FileAPI/#creating-revoking</a> 
   3.717 -</dd><dt id="bib-RFC2119">[Web Intents]</dt><dd>Greg Billock; James Hawkins; Paul Kinlan. <a href="http://dvcs.w3.org/hg/web-intents/raw-file/tip/spec/Overview.html"><cite>Web Intents.</cite></a> 27 April 2012. W3C Editor's Draft. (Work in progress.)  URL: <a href="http://dvcs.w3.org/hg/web-intents/raw-file/tip/spec/Overview.html">http://dvcs.w3.org/hg/web-intents/raw-file/tip/spec/Overview.html</a> 
   3.718 -</dd></dl></div><div id="informative-references" class="section"><h3><span class="secno">D.2 </span>Informative references</h3><p>No informative references.</p></div></div></body></html>
   3.719 \ No newline at end of file
     4.1 --- a/media-stream-capture/scenarios.html	Mon Sep 03 15:35:05 2012 +0200
     4.2 +++ b/media-stream-capture/scenarios.html	Mon Sep 03 18:02:09 2012 +0300
     4.3 @@ -3,11 +3,10 @@
     4.4    <head>
     4.5      <title>MediaStream Capture Scenarios</title>
     4.6      <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
     4.7 -    <script type="text/javascript" src='http://dev.w3.org/2009/dap/ReSpec.js/js/respec.js' class='remove'></script>
     4.8 -    <script type="text/javascript" src='http://dev.w3.org/2009/dap/ReSpec.js/js/sh_main.min.js' class='remove'></script>
     4.9 +    <script type="text/javascript" src='http://darobin.github.com/respec/builds/respec-w3c-common.js' class='remove'></script>
    4.10      <script type="text/javascript" class='remove'>
    4.11              var respecConfig = {
    4.12 -                  specStatus: "FPWD",
    4.13 +                  specStatus: "ED",
    4.14                    editors: [{
    4.15                              name: "Travis Leithead", 
    4.16                              company: "Microsoft Corp.",
    4.17 @@ -15,7 +14,8 @@
    4.18                              companyURL: "http://www.microsoft.com"}],
    4.19                    publishDate:  "2012-08-31",
    4.20                    edDraftURI:   "http://dvcs.w3.org/hg/dap/raw-file/tip/media-stream-capture/scenarios.html",
    4.21 -                  previousPublishDate:  null,
    4.22 +                  previousPublishDate: null,
    4.23 +                  prevED: "http://dvcs.w3.org/hg/dap/raw-file/a8e255b904df/media-stream-capture/scenarios.html",
    4.24                    noIDLIn:  true,
    4.25                    inlineCSS:  true,
    4.26                    noRecTrack:  true,
     5.1 --- a/network-api/Overview.html	Mon Sep 03 15:35:05 2012 +0200
     5.2 +++ b/network-api/Overview.html	Mon Sep 03 18:02:09 2012 +0300
     5.3 @@ -3,11 +3,7 @@
     5.4    <head>
     5.5      <title>The Network Information API</title>
     5.6      <meta http-equiv='Content-Type' content='text/html;charset=utf-8' />
     5.7 -
     5.8 -<!--
     5.9 -    <script src='../ReSpec.js/js/respec.js' class='remove'></script>
    5.10 --->
    5.11 -    <script src='http://respec.specifiction.com/js/profiles/w3c-common.js' class='remove'></script>
    5.12 +    <script src='http://www.w3.org/Tools/respec/respec-w3c-common' class='remove'></script>
    5.13      <script class='remove'>
    5.14        var respecConfig = {
    5.15            specStatus:           "ED",