SVGLIst::createItem() and SVGPathSeg

The SVGList interface provides a createItem() method that "creates an
initialized item of the appropriate type for [the] list".  The
SVGAnimatedPathData interface contains a number of SVGList attributes
which operate on elements of type SVGPathSeg.  The createItem() method in
these lists creates a SVGPathSeg object.  However, there is no way to tell
SVGList::createItem() what kind of SVGPathSeg segment to create and the
SVGPathSeg interface does not provide any means of setting the segment's
type.  It seems that any SVGPathSeg segment created by
SVGList::createItem() cannot be used.  Am I overlooking something?
----
Steven Dickson, Software Developer,
Savage Software

Received on Tuesday, 10 October 2000 12:53:37 UTC