W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2012

Re: [DOM4] Question about using sequence<T> v.s., NodeList for

From: Anne van Kesteren <annevk@opera.com>
Date: Fri, 16 Mar 2012 09:40:14 +0100
To: "public-webapps@w3.org" <public-webapps@w3.org>, "Vincent Hardy" <vhardy@adobe.com>
Message-ID: <op.wa881crv64w2qv@annevk-macbookpro.local>
On Fri, 16 Mar 2012 01:59:48 +0100, Vincent Hardy <vhardy@adobe.com> wrote:
> b. Use sequence<T> everywhere except where T=Node, in which case we  
> would use NodeList. This is consistent with DOM4 and inconsistent within  
> the spec.

I think this is fine, but you should use Range[] and not sequence<Range>.  
You cannot use sequence for attributes. Do you have a pointer to the  
specification by the way? Kind of curious why you want to expose a list of  
Range objects.


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Friday, 16 March 2012 08:40:53 GMT

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