W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2000

Question's about the CSSPrimitiveValue interface.

From: Blaine Brodie <bbrodie@savagesoftware.com>
Date: Tue, 20 Jun 2000 18:02:28 -0700
Message-id: <fc.0085846d0000906a0085846d0000906a.908b@savagesoftware.com>
To: www-dom@w3.org

I have a question about the CSSPrimitiveValue's setStringValue() method in
the current DOM2 specification.  The specification states that an
INVALID_ACCESS_ERR exception is to be raised if the CSS value doesn't
contain a string value or if the string value can't be converted into the
specified unit.  Should this also say that it will be raised if the
attached property doesn't support the string value or the unit type?

Also, what is expected to occur with CSSPrimitiveValue's
getPrimitiveType() method in the following case?  Assume I have a
CSSPrimitiveValue named 'primitiveValue'.  Also, assume that
primitiveValue's attached property can contain CSSValues of type
CSS_VALUE_LIST and CSS_PRIMITIVE_VALUE . What happens in the following
value.setCssText("a, valid, list") 	// no exception raised according to
current specification.  
value.getPrimitiveType() == ????.

A similar example can be given for CSSValues of type CSS_VALUE_LIST and

Thanks for the clarification,

Blaine Brodie
Received on Tuesday, 20 June 2000 21:02:24 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:07 UTC