Re: Returning null from ViewCSS.getComputedStyle()

Bjoern Hoehrmann:
> Well if the specification is not very clear about that, it will take a
> new edition of the Recommendation to give an authoriative answer, but
> while returning `null` for Element objects not in the document is quite
> sensible, I don't think that is the case for elements in the document.
> In the CSS model, there is a computed value for each property on all
> elements in the document, and you should be able to query it using this
> method.

I suspected as much; just wanted to make sure.  Perhaps the
specification should mention the ‘null for elements outside the
document’ bit, but I hear Anne is going to work on a spec to replace DOM
2 Style anyway.

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

Received on Monday, 23 April 2007 06:04:23 UTC