W3C home > Mailing lists > Public > public-svg-wg@w3.org > October to December 2008

Problem with udom-svg-224-t.svg

From: Alex Danilo <alex@abbra.com>
Date: Sun, 19 Oct 2008 23:01:36 +1100
Message-Id: <OQIZ8K.48YJ9XFDWFE@abbra.com>
To: public-svg-wg@w3.org

Hi guys,

	This being an at-risk test I've taken a detailed look at it.

	Inside there is some script that looks like:
--
        e = document.createElementNS(SVGNS, 'animateMotion');
        e.setTrait('begin', '5s');
        e.setAttributeNS(null, 'path', 'M0,0 L100,0');
        e.setAttributeNS(null, 'from', '0');
        e.setAttributeNS(null, 'to', '1');
        e.setAttributeNS(null, 'dur', '0.1s');
        e.setAttributeNS(null, 'fill', 'freeze');
        c1.appendChild(e);
--
	Since this is 'animateMotion' and the spec says "For 'animateMotion',
the specified values for 'from', 'by', 'to' and 'values' consists of x, y
coordinate pairs..." this means that the script lines:
--
        e.setAttributeNS(null, 'from', '0');
        e.setAttributeNS(null, 'to', '1');
--
	are in error.

	This may cause implementations to reject the incorrect setting,
and in fact given the earlier part of the test it should really raise
TYPE_MISMATCH_ERR.

	In any case, there are problems with the test as it stands.
I'd suggest removing the offending bits of ECMAScript, as the rest
of the test exercises lots of the uDOM.

Alex
Received on Sunday, 19 October 2008 12:02:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 19 October 2008 12:02:09 GMT