- From: Glenn Adams <glenn@skynav.com>
- Date: Fri, 24 Aug 2012 09:33:10 +0800
- To: "Tab Atkins Jr." <jackalmage@gmail.com>
- Cc: Boris Zbarsky <bzbarsky@mit.edu>, www-style@w3.org
Received on Friday, 24 August 2012 01:33:57 UTC
On Fri, Aug 24, 2012 at 9:22 AM, Tab Atkins Jr. <jackalmage@gmail.com>wrote: > On Thu, Aug 23, 2012 at 6:12 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote: > > On 8/23/12 5:46 PM, Tab Atkins Jr. wrote: > >> > >> How can we do this in WebIDL? > > > > You can declare getters and setters that would live directly on the > object > > in WebIDL to support open-ended sets of properties. So basically > something > > like this: > > > > getter DOMString (DOMString varName); > > setter void (DOMString varName, DOMString varValue); > > That works nicely with the existing attributes, I assume? Or do I > need to write the getter/setter to handle them as well? > My current thinking is to *only* define getter/setter and have it cover the existing CSS2Properties etc rather than define new partial interfaces ad infinitum. And that this g/s pair should be defined in such a way as to cover variable as well.
Received on Friday, 24 August 2012 01:33:57 UTC