ISSUE-2216: Not clear whether assigning to SVGLength.valueAsString can change the unitType

valueAsString-affecting-unitType

Not clear whether assigning to SVGLength.valueAsString can change the unitType

State:
CLOSED
Product:
SVG Full 1.1
Raised by:
Cameron McCormack
Opened on:
2009-02-05
Description:
When assigning to SVGLength.valueAsString (or SVGAngle.valueAsString), the unitType should be changed to whatever was parsed from the given string. For example:

var l = /* an SVGLength object */;
l.valueAsString = '1em';
assert(l.unitType == SVGLength.SVG_LENGTHTYPE_EMS);
assert(l.valueInSpecifiedUnits == 1);

But the current text describing valueAsString says:

The value as a string value, in the units expressed by unitType. Setting this
attribute will cause value and valueInSpecifiedUnits to be updated
automatically to reflect this setting.

which doesn't make this clear.

There's also no indication of what exception would be thrown if the given SVGLength string couldn't be parsed, or what exactly is the acceptable syntax.
Related Actions Items:
Related emails:
  1. SVG/profiles/1.1F2/errata errata.xml,1.68,1.69 (from cvsmail@w3.org on 2009-05-13)
  2. Re: Proposed erratum text for ISSUE-2216 (from cam@mcc.id.au on 2009-04-20)
  3. SVG/profiles/1.1F2/errata errata.html,1.14,1.15 errata.xml,1.60,1.61 (from cvsmail@w3.org on 2009-04-20)
  4. SVG/profiles/1.1F2/errata errata.html,1.13,1.14 errata.xml,1.59,1.60 (from cvsmail@w3.org on 2009-04-20)
  5. Minutes, April 6, 2009 telcon (from ed@opera.com on 2009-04-06)
  6. Proposed erratum text for ISSUE-2216 (from cam@mcc.id.au on 2009-04-06)
  7. Agenda, Monday 6 April 2009 SVG WG telcon (from cam@mcc.id.au on 2009-04-06)
  8. Re: ISSUE-2216 (valueAsString-affecting-unitType): Not clear whether assigning to SVGLength.valueAsString can change the unitType [SVG Full 1.1] (from cam@mcc.id.au on 2009-02-06)
  9. ISSUE-2216 (valueAsString-affecting-unitType): Not clear whether assigning to SVGLength.valueAsString can change the unitType [SVG Full 1.1] (from sysbot+tracker@w3.org on 2009-02-05)

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: 2216.html,v 1.1 2020/01/17 13:20:24 carcone Exp $