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

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

From: Brian Birtles <birtles@gmail.com>
Date: Mon, 18 Oct 2010 11:03:44 +0900
Message-ID: <AANLkTikyrB1Jihcm5-60Q2jFTT7G=sOLj2-Ck4n8uwt5@mail.gmail.com>
To: www-svg@w3.org
Just to clarify, not changing the DOM attribute values does seem to be
normative. From SMIL 3.0:

  The presentation value which results from applying an animation is
not visible through the DOM.[1]

(That said, elsewhere there appear to be concessions for
implementations where that is difficult.[2])

However, SVG has added interfaces for querying these values.

That, however, means that creating a snapshot does take a fair bit of
code as one needs to go through SVG's animated type interfaces rather
than just hasAttribute/getAttribute. That might be unfortunate, but
it's the case regardless of whether the attribute is created or not.

[1] http://www.w3.org/TR/SMIL/smil-DOM.html
[2] http://www.w3.org/TR/SMIL/smil-animation.html#animationNS-AnimationSandwichModel
"In some implementations of DOM, it may be difficult or impractical to
maintain a presentation value as described..."
Received on Monday, 18 October 2010 02:04:17 UTC

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