W3C home > Mailing lists > Public > www-svg@w3.org > December 2013

Re: Relaxing SVGList* item object equality in Blink/Chromium

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 12 Dec 2013 13:57:47 -0500
Message-ID: <52AA072B.6040205@mit.edu>
To: www-svg@w3.org
On 12/12/13 1:44 PM, Boris Zbarsky wrote:
> Please do file bugs as needed!

And in particular, I tried to reproduce the editability you claim and 
failed, in a current Firefox nightly [1].  So if you have a testcase 
that shows that editability I'd love to see it; presumably some method 
is just missing an "is animValue" check.

-Boris

[1]
<svg transform="translate(2, 2)"></svg>
<pre><script>
   var svg = document.querySelector("svg");
   var transform = svg.transform;
   var animVal = transform.animVal;
   var item = animVal.getItem(0);
   try {
     animVal.replaceItem(item, item);
     document.writeln("FAIL: animVal.replaceItem did not throw")
   } catch (e) {
     document.writeln("PASS: animVal.replaceItem gives " + e)
   }
   try {
     animVal.appendItem(item);
     document.writeln("FAIL: animVal.appendItem did not throw")
   } catch (e) {
     document.writeln("PASS: animVal.appendItem gives " + e)
   }
   try {
     item.setScale(1,1);
     document.writeln("FAIL: animVal setScale did not throw")
   } catch (e) {
     document.writeln("PASS: animVal setScale gives " + e)
   }
</script>
Received on Thursday, 12 December 2013 18:58:16 UTC

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