W3C home > Mailing lists > Public > spec-prod@w3.org > July to September 2011

Re: WebIDL Dictionaries

From: Anssi Kostiainen <anssi.kostiainen@nokia.com>
Date: Wed, 7 Sep 2011 20:09:00 +0300
Cc: Eliot Graff <Eliot.Graff@microsoft.com>, "spec-prod@w3.org Prod" <spec-prod@w3.org>
Message-Id: <5AA5233B-6471-448D-AADD-87096025295E@nokia.com>
To: ext Robin Berjon <robin@berjon.com>
Hi Robin,

On 7.9.2011, at 18.33, ext Robin Berjon wrote:

> On Jul 11, 2011, at 19:44 , Eliot Graff wrote:
>> Yes, the same sort of rendering would be perfect.
> 
> Sorry it took a while. I've just committed an update to ReSpec that supports dictionaries. The syntax is hopefully pretty much the one you'd expect.

Thanks, this is excellent!

Would it possible for the dictionary to show up within the same WebIDL block with other definitions? Currently it is wrapped within its own WebIDL block (or am I doing it wrong?), see:

  http://dev.w3.org/2009/dap/system-info/battery-status.html#batterystatusevent-interface

Some specs which do not use ReSpec.js but do use dictionaries seem to include dictionary within the same WebIDL block with other definitions which depend on it, e.g.:

  http://dev.w3.org/2006/webapi/progress/#interface-progressevent

I may try to get my hands dirty and hack with ReSpec.js myself, but I'm asking here first in case you have a preference because you're Mr. ReSpec.js :)

-Anssi
Received on Wednesday, 7 September 2011 17:09:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:19:18 GMT