SVGLength.convertToSpecifiedUnits()

In SVG 1.1, the description for SVGLength.convertToSpecifiedUnits() says
"No Exceptions," but there are situations where the results would be
undefined:

1) If the unitType is SVG_LENGTHTYPE_UNKNOWN, then the results of the
conversion are obviously undefined. (Setting the value to zero would be
a reasonable default behavior in this case.)

2) If either the existing unitType or to-be-assigned unitType are
SVG_LENGTHTYPE_PERCENTAGE, SVG_LENGTHTYPE_EXS or SVG_LENGTHTYPE_EMS,
then the results of the conversion are undefined if the two unitTypes
are different and the SVGLength exists outside of a DOM tree. (I can't
think of a reasonable default behavior in this case.)

-Steve Schafer
Fenestra Technologies Corp
http://www.fenestra.com/

Received on Thursday, 22 May 2003 14:15:32 UTC