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

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

From: Alex Danilo <alex@abbra.com>
Date: Mon, 18 Oct 2010 12:01:46 +1100
Message-Id: <Y6OGAL.QFCUL1XOHHRC@abbra.com>
To: Brian Birtles <birtles@gmail.com>
Cc: www-svg@w3.org
Yes, but do you get an attribute to serialize is the question?

If there is no attribute in the DOM at the time of animation at least,
what is being animated exactly?

Are you advocating anonymous attributes that live off the SMIL element?
Then what happens when you add the animated attribute via script? Does
the DOM have to interrogate the SMIL engine to see if it has any of
these anonymous synthsized attributes in its model?

Sounds like a God-awful mess to me.

Alex

--Original Message--:
>On 18 October 2010 08:49, Alex Danilo <alex@abbra.com> wrote:
>> So, if at t=3.5s you serialize the output of (2) you should be able to read
>> that serialization in and see what you were looking at in the browser.
>
>Serialising a DOM tree by calling getAttribute on its elements should
>most definitely not give you the animated values of those attributes
>as per the section of the spec quoted by Bjoern Hoehrmann. If you want
>to create a serialisation with the animated state then you'd want
>rect.height.animVal.valueAsString (but then you're really taking a
>snapshot, not a serialisation, and you'd want to drop animation
>elements etc.).
>
>
Received on Monday, 18 October 2010 01:02:20 GMT

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