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

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