Re: Identifying element type

----- Original Message -----
From: "Alex Vincent" <ajvincent@hotmail.com>
To: "Jon Ferraiolo" <jferraio@Adobe.COM>
Sent: Tuesday, August 29, 2000 12:09 PM
Subject: Re: Identifying element type


> Thank you for your response, sir.  However, I must confess my mind on what
I
> need to do is changing all the time, and now my line of thinking is that
for
> the time being, my JavaScript should define its own geometry object.
>
> So, now I have to expand my original question to cover SVG DOM objects
which
> do not have tags.  For instance, SVGAngle and SVGPoint -- identifying
those
> data types would help me out a lot.  Of course, I can write my own
functions
> to create objects with two properties:  the data type or custom object
> (Geom.newobj.Object) I would create, and the type of object I call it
> (Geom.newObj.ObjType as a string).  But naturally, if there's something I
> can use to identify what kind of data type there is, my custom objects can
> have their own data types.
>
> In any case, I can transform my custom objects as appropriate via
JavaScript
> into SVG, without the need for extending the current DTD.
>
> ----- Original Message -----
> From: "Jon Ferraiolo" <jferraio@Adobe.COM>
> To: "Alexander J. Vincent" <ajvincent@hotmail.com>
> Sent: Monday, August 28, 2000 8:29 PM
> Subject: Re: Identifying element type
>
>
> > Theoretically, you can find out the type of an element foo by
foo.tagName.
> > 'tagName' is a DOM attribute that is available for all elements. Look
at:
> >
> > http://www.w3.org/TR/DOM-Level-2/core.html#ID-745549614
> >
> > I don't know if the Adobe SVG Viewer supports this, at least according
to
> > the DOM spec relating to limitations with Netscape.
> >
> > Jon
> >
> > At 04:38 PM 8/24/00 -0700, you wrote:
> > >I recall from the SVG specs that each element has a type label
> > >(example:  a G element is known as a SVGGElement).  But I don't see
> > >anything to identify the type of element an object is.
> > >
> > >This may be important, or not.  I'm not sure.
> >
>________________________________________________________________________
> > >Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com
> > >
> >
> >
>

Received on Tuesday, 29 August 2000 15:11:29 UTC