W3C home > Mailing lists > Public > public-svg-wg@w3.org > April to June 2010

ISSUE-2323 (array-notation-for-list): Consider aligning SVG*List interfaces with other arraylike types [SVG 2.0]

From: SVG Working Group Issue Tracker <sysbot+tracker@w3.org>
Date: Fri, 7 May 2010 09:10:14 +0000 (GMT)
To: public-svg-wg@w3.org
Message-Id: <20100507091014.C91AB4DD6E@crusher.w3.org>

ISSUE-2323 (array-notation-for-list): Consider aligning SVG*List interfaces with other arraylike types [SVG 2.0]

http://www.w3.org/Graphics/SVG/WG/track/issues/2323

Raised by: Erik Dahlström
On product: SVG 2.0

The SVG*List interfaces in SVG 1.1 are a bit different from e.g NodeList, which uses ".length" instead of ".numberOfItems", and which allows array notation for accessing items in the list, "mylist[3]" instead of "mylist.item(3)" and "mylist.getItem(3)" (for all SVG*List except SVGElementInstanceList).

We should consider changing the IDL definitions to align with the NodeList / Array syntax in ecmascript.

Note: the SVGElementInstanceList is in line with the definition of NodeList, which also has the item() method. The other list types are all using getItem.
Received on Friday, 7 May 2010 09:10:16 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:29:43 UTC