W3C home > Mailing lists > Public > www-style@w3.org > April 2007

Re: Returning null from ViewCSS.getComputedStyle()

From: Cameron McCormack <cam@mcc.id.au>
Date: Mon, 23 Apr 2007 06:04:20 +0000
To: www-style@w3.org
Message-ID: <20070423060420.GB21523@arc.mcc.id.au>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:50 GMT