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:
ACTION-2513 on Cameron McCormack to Make an SVG 1.1 errata with the proposed changes in http://lists.w3.org/Archives/Public/public-svg-wg/2009AprJun/0008.html and to test existing implementations (for exceptioncodes used if any etc) - due 2009-04-13, closed- Related emails:
- SVG/profiles/1.1F2/errata errata.xml,1.68,1.69 (from cvsmail@w3.org on 2009-05-13)
- Re: Proposed erratum text for ISSUE-2216 (from cam@mcc.id.au on 2009-04-20)
- 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)
- 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)
- Minutes, April 6, 2009 telcon (from ed@opera.com on 2009-04-06)
- Proposed erratum text for ISSUE-2216 (from cam@mcc.id.au on 2009-04-06)
- Agenda, Monday 6 April 2009 SVG WG telcon (from cam@mcc.id.au on 2009-04-06)
- 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)
- 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