Default value of SVGUseElement.{width,height}

Hi.

In a similar issue to that described in
http://www.w3.org/mid/20060614070058.GB22792@port.mcc.id.au, SVG 1.1
does not specify the value that the width and height attributes on the
SVGUseElement interface should have if they are not specified.

With this document:

  <svg xmlns="http://www.w3.org/2000/svg"
       xmlns:xlink="http://www.w3.org/1999/xlink"
       width="100" height="200">
    <g id="g"/>
    <use id="u" xlink:href="#g"/>
    <script>
      var u = document.getElementById("u");
      alert(u.width.baseVal.value + " x " + u.height.baseVal.value);
    </script>
  </svg>

Batik SVN and Opera 9 show “0 x 0”, while Firefox shows “100 x 200”.
The attributes aren’t implemented in ASV 3.  What should the correct
behaviour be?

Thanks,

Cameron

-- 
Cameron McCormack, http://mcc.id.au/
 xmpp:heycam@jabber.org  ▪  ICQ 26955922  ▪  MSN cam@mcc.id.au

Received on Wednesday, 21 June 2006 08:35:27 UTC