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
Received on Friday, 16 March 2012 08:40:53 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:31 UTC