ISSUE-2323: Consider aligning SVG*List interfaces with other arraylike types

array-notation-for-list

Consider aligning SVG*List interfaces with other arraylike types

State:
RAISED
Product:
SVG 2
Raised by:
Erik Dahlström
Opened on:
2010-05-07
Description:
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.
Related Actions Items:
Related emails:
  1. minutes, SVG WG Auckland F2F, day 2 (from ed@opera.com on 2011-03-01)
  2. Minutes, 10 may 2010 SVG telcon (from chris@w3.org on 2010-05-10)
  3. SVG WG Telecon Meeting Notes 5/10/2010 (from patd@microsoft.com on 2010-05-10)
  4. Agenda SVG WG telcon May 10, 2010 (from ed@opera.com on 2010-05-10)
  5. ISSUE-2323 (array-notation-for-list): Consider aligning SVG*List interfaces with other arraylike types [SVG 2.0] (from sysbot+tracker@w3.org on 2010-05-07)

Related notes:

No additional notes.

Display change log ATOM feed


Dirk Schulze <dschulze@adobe.com>, Chair, Chris Lilley <chris@w3.org>, Staff Contact
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <w3t-sys@w3.org>.
$Id: 2323.html,v 1.1 2020/01/17 13:21:13 carcone Exp $