Re: Is the <g> element redundant in SVG?

The <g> has at least one attribute that an <svg> doesn't have -- the 
'transform' attribute, and the <svg> has many attributes  that a <g> 
doesn't have, particularly document-level attributes. There are many notes 
in the SVG spec about unique behavior with <svg> elements. While they 
overlap quite a bit, there are clear differences.

There is clearly a need for two different elements.

Jon Ferraiolo
SVG Editor
jferraio@adobe.com

At 06:23 PM 1/10/01 -0500, you wrote:
>I wonder if someone can help me. I am trying to figure out what purpose the
><g> element serves in SVG 1.0.
>
>I am not asking how to use it. That I understand. At least I think I do. :)
>
>But why is the <g> element there at all? Since the <svg> element can be
>nested and implicitly groups elements nested within it what is the unique
>value that the <g> element adds?
>
>Am I missing some obvious unique aspect of the <g> element? Or could it
>simply be deleted from SVG 1.0 with no loss and nested <svg> elements serve
>the same purpose?
>
>Andrew Watt

Received on Thursday, 11 January 2001 15:40:41 UTC