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

Re: does <set> add an attribute to node.attributes

From: Jeremie Patonnier <jeremie.patonnier@gmail.com>
Date: Mon, 18 Oct 2010 14:17:10 +0200
Message-ID: <AANLkTi=8QwMrwGDDaBYh9-kZwrOHo3O+iHaew7wnik0N@mail.gmail.com>
To: Erik Dahlstrom <ed@opera.com>
Cc: Alex Danilo <alex@abbra.com>, "Robert O'Callahan" <robert@ocallahan.org>, ddailey <ddailey@zoominternet.net>, www-svg@w3.org
Hello everyone,

I'm very interested about this thread, but as a end user, there is something
that puzzled me out.

Does all the attributes should be explicitly declared ? If I understand what
all of you said, it seams that any attribute which is not explicitly declare
should not appear in the DOM tree.

It seams that for some of you, there is a difference between <rect /> and
<rect x="0" y="0" width="0" height="0" />. For end users like me, there is
not. And at some point, there is no difference in browsers as well. In fact,
it's a bit tricky (and confusing for people like me).

For what I can see, browsers (which mean to me Firefox, Chrome and Opera)
make a difference when they populate the attributes property. So, accessing
the attribute value through the attribute property or through the
getAttribute method doesn't work in the first case. But when you try to make
a direct access to the attributes with the syntax rect.width (which is a
valid DOM access for what I know) you get a SVGAnimatedLength object where
the baseVal property is 0 in both case.

So if there a SVGAnimatedLength object somewhere, it's seams obviously
possible to animate an attribute which is not declare by the user in the
first place...

So the question to me is more about exposing or not an attribute inside the
attribute DOM property if it is animated or not (and it's seams reasonable
to said that it should not). But in any case the animation should occur.

Hope that this simplistic end user point of view can help.
Best Regards
-- 
Jeremie
.............................
Web : http://jeremie.patonnier.net
Twitter : @JeremiePat <http://twitter.com/JeremiePat>
Received on Monday, 18 October 2010 12:17:42 GMT

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