W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2000

RE: DOM-2 CSSPrimitiveValue

From: Bill dehOra <Wdehora@cromwellmedia.co.uk>
Date: Wed, 29 Mar 2000 14:13:00 +0100
Message-ID: <AA4C152BA2F9D211B9DD0008C79F760A5CA4A3@odin.cromwellmedia.co.uk>
To: www-dom@w3.org


:"An instance of this interface can be obtained from the 
:getPropertyCSSValue method of the CSSStyleDeclaration interface."
:
:This is a bit misleading. The getPropertyCSSValue method 
:return type is specified to be CSSValue, not 
:CSSPrimitiveValue. I think you want to say here something like:

Given that CSSPrimitiveValue is a kind of CSSValue, you can use
CSSValue.getValueType() to determine which type the returned item is and
perform a language specific cast against that. So the type is knowable
without a cast. Perhaps the comment should read:

"An instance of this interface *may* be obtained from the 
getPropertyCSSValue method of the CSSStyleDeclaration interface."


--------------------------------------------------------------------
    Bill de hOra    :    Cromwell Media    :    London

  bill@cromwellmedia.co.uk  :  +44 (0)20 8817 4039  
--------------------------------------------------------------------

             
Received on Wednesday, 29 March 2000 11:56:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:47 GMT