ISSUE-2460: should not be allowed to insert non-list reflecting SVGLength into SVGLengthList

list-non-list-object-sharing

should not be allowed to insert non-list reflecting SVGLength into SVGLengthList

State:
RAISED
Product:
SVG 2
Raised by:
Cameron McCormack
Opened on:
2014-07-12
Description:
The spec says that when you append an SVGLength to an SVGLengthList, that if the SVGLength is in a list already it is first removed. First, this doesn't account for with the SVGLength came from an animVal, in which case the list is read only and you can't remove it. Second, it doesn't explicitly handle the case where the SVGLength came from a reflecting non-list attribute, such as rectElement.x.baseVal.

We should either

1. throw, since we can't handle this like the "remove from the list it's
already in" behaviour, or
2. make a copy of the SVGLength to insert instead.

It might even be preferable to copy the SVGLength rather than move it even if it is in a modifiable list. We should see what implementations do (Gecko copies currently in that case).
Related Actions Items:
No related actions
Related emails:
  1. Re: agenda, 17 July 2014 SVG WG telcon (from schwer@us.ibm.com on 2014-07-17)
  2. agenda, 17 July 2014 SVG WG telcon (from cam@mcc.id.au on 2014-07-17)
  3. SVG-ISSUE-2460 (list-non-list-object-sharing): should not be allowed to insert non-list reflecting SVGLength into SVGLengthList [SVG 2] (from sysbot+tracker@w3.org on 2014-07-12)

Related notes:

No additional notes.

Display change log ATOM feed


Dirk Schulze <dschulze@adobe.com>, Chair, Chris Lilley <chris@w3.org>, Staff Contact
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <w3t-sys@w3.org>.
$Id: 2460.html,v 1.1 2020/01/17 13:22:08 carcone Exp $