W3C home > Mailing lists > Public > www-svg@w3.org > June 2008

Re: Question about SVG List replaceItem

From: Jeff Schiller <codedread@gmail.com>
Date: Wed, 25 Jun 2008 20:52:18 -0500
Message-ID: <da131fde0806251852lc0a564g376dfc206015b618@mail.gmail.com>
To: www-svg <www-svg@w3.org>
Can the SVG WG please provide a decision and errata item for this?


On 5/23/08, Jeff Schiller <codedread@gmail.com> wrote:
> http://www.w3.org/TR/SVG11/paths.html#InterfaceSVGPathSegList states for
> replaceItem(newItem,index):
> Replaces an existing item in the list with a new item. If newItem is
> already in a list, it is removed from its previous list before it is
> inserted into this list.
> and that index is "The index of the item which is to be replaced."
> Let's say my path seg list has {x,y,z} and I call replaceItem(x,1).
> Since x is actually in this seg list, it should be remove BEFORE
> being inserted.  Removing x from the seg list means that y has become the
> 0th item in the list and that z is the 1st item in the list.
> So should the resultant seg list after replaceItem(x,1) has been called be:
> {x,z} - my guess
> or
> {y,x}
> I think the index is probably the index of the item to be replaced before
> the new item has been removed from its current list.
> Thanks,
> Jeff
Received on Thursday, 26 June 2008 01:52:53 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:14 UTC