[Alarm API] Object data must be serialisable to JSON

The spec says: 
> > AlarmRequest add(Date date, TimezoneDirective respectTimezone, optional Object data);

This has been raised before, but the definition of "data" is not quite right. It's not so much that data is a [Web IDL] Object (that would be all objects that inherit from Object, including Window I guess), but that data needs to be serialisable to a JSON string. I don't know what the right WebIDL is for specifying that (if it's even possible, but I've asked on public-script-coord@w3.org [1]). It might just have to be defined in prose a bit better. 




[1] http://lists.w3.org/Archives/Public/public-script-coord/2013JanMar/0130.html-- 
Marcos Caceres
http://datadriven.com.au

Received on Monday, 11 February 2013 22:22:33 UTC