W3C home > Mailing lists > Public > www-svg@w3.org > October 2003

Re: setting an svg path attribute should raise an error on invalid path.

From: Jim Ley <jim@jibbering.com>
Date: Wed, 29 Oct 2003 22:53:07 -0000
To: www-svg@w3.org
Message-ID: <bnpgei$ecf$1@sea.gmane.org>


"Steve Schafer" <steve@fenestra.com> wrote in message
news:4oe0qv4e2h697fkkcd5tt58soon44ruf82@4ax.com...

On Wed, 29 Oct 2003 21:55:48 -0000, "Jim Ley" <jim@jibbering.com> wrote:

>>el=doc.createElementNS(svgNS,"path")
>>el.setAttributeNS(null, "d","Y 10")
>>
>>To throw an error (which I could then catch and only use my slow parser
when
>>the syntax differs.)

>Wouldn't it make more sense for that test to be incorporated into your
>fancy parser? That is, the parser should first use the old/fast
>algorithm to parse the attribute.

In ecmascript in RCC - I don't have access to the old/fast algorithm, it's
natively implemented creating paths through the DOM methods is slow compared
to using the native methods.

> If that failed, it would attempt to reparse the attribute
>using the new/slow algorithm.

If I was doing this all in my new viewer sure.

Jim.
Received on Wednesday, 29 October 2003 17:54:15 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:26 GMT