2009/dap/contacts Overview.html,1.128,1.129

Update of /sources/public/2009/dap/contacts
In directory hutz:/tmp/cvs-serv27071/contacts

Modified Files:
	Overview.html 
Log Message:
Added feedback from http://lists.w3.org/Archives/Public/public-device-apis/2011May/0024.html

Index: Overview.html
===================================================================
RCS file: /sources/public/2009/dap/contacts/Overview.html,v
retrieving revision 1.128
retrieving revision 1.129
diff -u -d -r1.128 -r1.129
--- Overview.html	25 May 2011 11:49:26 -0000	1.128
+++ Overview.html	25 May 2011 11:56:09 -0000	1.129
@@ -152,7 +152,7 @@
       <pre class="example sh_javascript_dom">
         function success (contacts) {
           // do something with resulting contact objects
-          for (var i in contacts) alert(contacts[i].displayName);
+          for (var i in contacts) alert(contacts[i].name);
           // ...
         }
 
@@ -443,6 +443,10 @@
               This attribute represents the full name of this <a>Contact</a> indicated by the name components 
               associated with the <a>ContactName</a> object.
             </p>
+            <p>
+              Each <a>Contact</a> MUST include either a <code>displayName</code> or the <code>name</code>
+              attribute.
+            </p>
           </dd>
           <dt>attribute DOMString nickname</dt>
           <dd>
@@ -794,7 +798,7 @@
           <dd>
             A boolean value to indicate whether multiple Contact objects are wanted as part of the
             <a>Contacts</a> <a href="#widl-Contacts-find">find()</a> operation.
-            By default this option is set to <code>true</code>.
+            By default this option is set to <code>false</code>.
           </dd>
           <dt>attribute Date updatedSince</dt>
           <dd>
@@ -961,9 +965,11 @@
 
         <p>
         If the <a>search qualifier</a> provided is of <em>zero-length</em> then the current <a href=
-        "#contacts-interface"><code>Contacts</code></a> <a href="#widl-Contacts-find">find()</a> operation MUST
-        NOT return any <a href="#contact-interface"><code>Contact</code></a> properties within any resulting
-        <a href="#contact-interface"><code>Contact</code></a> object(s).
+        "#contacts-interface"><code>Contacts</code></a> <a href="#widl-Contacts-find">find()</a> operation and 
+        the current find() operation was invoked with a non-<code>null</code> 
+        <code>errorCB</code> parameter, then the user agent MUST invoke the <code>errorCB</code> function
+        with an error code of <a href=
+        "#widl-ContactError-INVALID_ARGUMENT_ERROR"><code>INVALID_ARGUMENT_ERROR</code></a>.
         </p>
 
         <p>

Received on Wednesday, 25 May 2011 11:56:12 UTC