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

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

From: SVG Working Group Issue Tracker <sysbot+tracker@w3.org>
Date: Wed, 20 May 2009 09:10:44 +0000 (GMT)
To: public-svg-wg@w3.org
Message-Id: <20090520091044.146557F46F@otto.w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 20 May 2009 09:10:54 GMT