W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2013

RE: Allowing IDL attributes to have different types for the getter and setter

From: Domenic Denicola <domenic@domenicdenicola.com>
Date: Thu, 18 Apr 2013 02:20:32 +0000
To: Boris Zbarsky <bzbarsky@MIT.EDU>
CC: "public-script-coord@w3.org" <public-script-coord@w3.org>
Message-ID: <B4AE8F4E86E26C47AC407D49872F6F9F7EF31B2B@BY2PRD0510MB354.namprd05.prod.outlook.com>
From: Boris Zbarsky [mailto:bzbarsky@MIT.EDU]

> On 4/17/13 9:58 PM, Domenic Denicola wrote:
> > That sounds like a bizarre API to me. Access or properties should, as much as possible, behave just like normal data properties.
> 
> OK.  What would you like to see for the specific API under discussion here?

Assuming I'm understanding the background reading correctly,

    myFileInput.files = new FileList([aFile]);
    myFileInput.files = new FileList([bFile, cFile]);

seems like the way to go. As long as, generally,

    var x = someThingOfTheCorrectType;
    y.z = x;
    assert(y.z === x);

passes, then we're in good shape.
Received on Thursday, 18 April 2013 02:21:03 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:12 UTC