W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2009

Re: [NameCreator] definition buggy

From: Cameron McCormack <cam@mcc.id.au>
Date: Sun, 21 Jun 2009 00:04:09 +1000
To: Ian Hickson <ian@hixie.ch>
Cc: public-webapps@w3.org
Message-ID: <20090620140409.GD12356@arc.mcc.id.au>
Ian Hickson:
> [[Put]] in WebIDL is buggy. It never invokes NameCreator or IndexCreator.
> 
> I'd like IndexCreator to be invoked if present if the property name is 
> numeric (as per Array's definition -- ToString(ToUint32(P)) == P && 
> ToUint32(P) < 2**23-1) and otherwise NameCreator to be invoked if present.

It is fixed now, and prefers indexed properties over name properties as
requested:

  http://dev.w3.org/2006/webapi/WebIDL/#put

Note that I’ve also provided explicit hooks for defining the name/
indexed property algorithms now, which you might like to reference:

  http://dev.w3.org/2006/webapi/WebIDL/#dfn-determine-the-value-of-a-named-property
  and others, in 
  http://dev.w3.org/2006/webapi/WebIDL/#indexed-property-xattrs and
  http://dev.w3.org/2006/webapi/WebIDL/#named-property-xattrs

Thanks,

Cameron

-- 
Cameron McCormack ≝ http://mcc.id.au/
Received on Saturday, 20 June 2009 14:04:58 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:31 GMT