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

Re: Questions on SVG DOM Change Propogation

From: Erik Dahlstrom <ed@opera.com>
Date: Tue, 09 Feb 2010 21:51:45 +0100
To: "Patrick Dengler" <patd@microsoft.com>, "www-svg@w3.org" <www-svg@w3.org>
Message-ID: <op.u7vn8jdngeuyw5@erik-dahlstroms-macbook-pro-2.local>
On Tue, 09 Feb 2010 19:22:08 +0100, Patrick Dengler <patd@microsoft.com>  
wrote:

> Hi folks,
>
> We are seeing some differing behaviors across implementations on DOM  
> Propagation.  We'd like to nail the appropriate behaviors.  (forgive the  
> length again)

...

It would be helpful if the examples were full svg documents, feel free to  
check them into the public cvs here:

   http://dev.w3.org/SVG/profiles/1.1F2/ua-tests/

That's where we put tests that are mostly for discussing a particular  
issue.

> Scenario 7: Setting the baseVal of a target's animation value.
>     function setTarget(evt) {
>         var root = evt.target.ownerDocument.rootElement;
>         var a = root.firstChild.nextSibling;
>         var aniStr = a.target;
>         alert(aniStr.baseVal);
>         aniStr.baseVal = "_foo";
>         alert(a.target.baseVal);
>     }
> Safari: Updates the link target.
> Firefox: Updates the link target (and open the new target in a tab  
> instead of a window).
> Opera: Does not support links.

I see no reason why the above shouldn't work in Opera, links (including  
the 'target' attribute) are supported.

This gave the same results in all the browsers I tested just now (safari,  
opera, firefox):

   data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"><a  
target="foo"/><script>var a = document.getElementsByTagName("a")[0]; var  
target = a.target; alert(target.baseVal + ": should say foo");  
target.baseVal = "_bar"; alert(a.target.baseVal + ": should say  
_bar")</script></svg>

Again, it would be good with a full testcase to help the discussions.

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed
Received on Tuesday, 9 February 2010 20:52:30 GMT

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