W3C home > Mailing lists > Public > www-svg@w3.org > May 2000

Re: List items; are they intended to be unique?

From: Jon Ferraiolo <jferraio@Adobe.COM>
Date: Wed, 03 May 2000 20:26:12 -0700
Message-Id: <200005040323.UAA15441@mail-345.corp.Adobe.COM>
To: sdickson@savagesoftware.com (Steve Dickson)
Cc: www-svg@w3.org
I believe you are correct. I believe there should be a new exception in the
SVG DOM if you attempt to insert the same object into two different lists.

I will raise the issue within the working group.

Jon Ferraiolo
SVG Editor
Adobe Systems Incorporated

At 03:15 PM 4/24/00 -0700, Steve Dickson wrote:
>The WD of 2000/03/03 seems to allow the user to insert a given object into
>more than one list,  or to insert the object into the same list more than
>once.  eg.
>SVGSVGElement svg;
>SVGPolylineElement polyline = svg.createSVGPolylineElement();
>SVGPolygonElement polygon = svg.createSVGPolygonElement();
>SVGList polylinePointlist = polyline.getPoints();
>SVGList polygonPointlist = polygon.getPoints();
>SVGPoint point = (SVGPoint)polylinePointlist.createItem();
>SVGPathElement path;
>SVGList svgpathseglist = path.getSVGPathSegList():
>SVGPathSeg seg = path.createSVGPathSeg();
>Is this considered legal?  The DOM2 spec handles a similar situation with
>Attr nodes by throwing a DOMException::INUSE_ATTRIBUTE_ERR, forcing the
>user to clone Attr nodes if they are to be reused.  Since SVG lists are
>essentially an extension of DOM Attr nodes, shouldn't they produce the
>same behaviour i.e. list items can be be inserted into at most one list at
>any given time?  
Received on Wednesday, 3 May 2000 23:23:52 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:48 UTC