W3C home > Mailing lists > Public > public-device-apis@w3.org > January 2010

Re: [contacts] PutForwards for complex contact attributes

From: Dominique Hazael-Massieux <dom@w3.org>
Date: Wed, 27 Jan 2010 18:05:09 +0100
To: richard.tibbett@orange-ftgroup.com
Cc: public-device-apis@w3.org
Message-ID: <1264611909.14141.59.camel@localhost>
Hi Richard,

Le lundi 21 décembre 2009 à 18:11 +0100,
richard.tibbett@orange-ftgroup.com a écrit :
> Looking in to the WebIDL documentation I see some value in using
> PutForwards [1] for Contacts API [2] 'complex' attributes.

I note that in the FPWD, PutForwards is applied to 
        attribute ContactField[]   impps;

WebIDL notes that PutForwards can only be used on read-only attributes,
with an identifier that match a known attribute of a well-known type.

The IDL above thus breaks two rules:
• it's not applied to a readonly attribute
• ContactField[] doesn't have a "value" attribute so it can't be used
with PutForwards (ContactField does, but they aren't the same)

(I'm working on making the WebIDL checker detect these problems, FWIW)

Hope this helps,


> [1] http://dev.w3.org/2006/webapi/WebIDL/#PutForwards
> [2] http://dev.w3.org/2009/dap/contacts/
Received on Wednesday, 27 January 2010 17:05:21 UTC

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