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

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 UTC