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

About the 'use' element

From: Jeremie Patonnier <jeremie.patonnier@gmail.com>
Date: Mon, 19 Jul 2010 17:04:10 +0200
Message-ID: <AANLkTilrRHLMot8US9pn9iq8XpaAsZiyt7EMBYUA5cCx@mail.gmail.com>
To: www-svg@w3.org
Hello everyone

It's the first time I post here and even if I'm working with the W3C
technologies for years now, I'm a true newbies about SVG. So my apology if
my question seems silly.

Recently, by working on a project that use inline SVG inside an HTML5
document, I have made a mistake when reading the SVG specification: I have
assumed that any valid child for the 'g' element could be a valid target for
the 'use' element which is a wrong assumption (see my bug report to Mozilla
: https://bugzilla.mozilla.org/show_bug.cgi?id=579550).

Beyond my own misunderstanding, I was wondering : If a 'g' element is a
valid target for a 'use' element, why any valid child for the 'g' element is
not a valid target for the 'use' element?

As a web designer I found this a bit puzzling to have to wrap an element
such as 'foreignObject' with a 'g' element to have the ability to reuse it
through a 'use' element.

Is there any technical, philosophical or historical reasons behind such a

Best regards
Jérémie Patonnier
Received on Tuesday, 20 July 2010 07:03:22 UTC

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