ISSUE-2273 (insertbefore_indexerr): Should negative index values raise INDEX_SIZE_ERR exceptions in insertItemBefore [SVG Full 1.1]

ISSUE-2273 (insertbefore_indexerr): Should negative index values raise INDEX_SIZE_ERR exceptions in insertItemBefore [SVG Full 1.1]

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

Raised by: Erik Dahlström
On product: SVG Full 1.1

The SVG*List.insertItemBefore method doesn't raise an exception if the index parameter is negative, unlike the getItem and replaceItem methods.

Proposed addition (under Exceptions in the insertItemBefore method definition):

  DOMException - INDEX_SIZE_ERR: Raised if the index number is negative.

This is the same for all the SVG*List types, e.g http://www.w3.org/TR/SVG11/types.html#InterfaceSVGStringList.

Received on Wednesday, 20 May 2009 09:10:53 UTC