Returning null from ViewCSS.getComputedStyle()


Is it conforming behaviour for a UA to return null from the call to
ViewCSS.getComputedStyle() if the element is not something that renders?
For example:

  <svg xmlns=''>
    <abc xmlns='' id='a'/>
      a = document.getElementById('a');
      s = document.defaultView.getComputedStyle(a, null);

      // Is s allowed to be null?

SVG states that subtrees rooted in elements, such as the ‘abc’ element
above, are never rendered.  Currently, Batik[1] will return null for any
element that does not derive from SVGStylable, but I’m wondering if that
behaviour is correct.




Cameron McCormack,  ▪  ICQ 26955922  ▪  MSN

Received on Monday, 23 April 2007 05:46:26 UTC