W3C home > Mailing lists > Public > www-svg@w3.org > January 2010


From: Robert Longson <longsonr@gmail.com>
Date: Thu, 14 Jan 2010 13:31:58 +0000
Message-ID: <31fc788d1001140531j4f40bd33x6e340f0bb2d2c733@mail.gmail.com>
To: www-svg@w3.org
Cc: Jonathan Watt <jwatt@jwatt.org>

I was looking at the following test:
http://dev.w3.org/SVG/profiles/1.1F2/test/svg/types-dom-05-b.svg which is
available from
http://dev.w3.org/SVG/profiles/1.1F2/errata/implementation-report.html and I
don't think it is correct.

When the js interpreter encounters c.r.baseVal.valueAsString = 'rubbish'; it
should throw a DOM_SYNTAX_ERR. So far so good.

However DOM_SYNTAX_ERR is not an SVG error it is a standard DOM error. So
what you get is NOT an SVGException it is instead an ordinary DOMException.
The main difference is that SVGExceptions should support the SVGException
interface: http://www.w3.org/TR/SVG/svgdom.html#InterfaceSVGExceptionwhereas
DOMExceptions have no such requirement.

The next part of the test is b = e.code == 12; // SYNTAX_ERR but this fails
as it is SVGException that defines 'code'.

Best regards

Received on Thursday, 14 January 2010 13:32:38 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:25 UTC