W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2000

Clarification of the meaning of "reset"

From: Blaine Brodie <bbrodie@savagesoftware.com>
Date: Mon, 18 Sep 2000 16:44:37 -0700
Message-id: <fc.0085846d000121080085846d00012108.1212b@savagesoftware.com>
To: www-dom@w3.org
For CSSStyleDeclaration's description of its setCssText method, the
description states that calling this method results in the parsing of the
new value and resetting of properties in the declaration block.  Does this
mean that all outstanding references (ex. CSSValues, RGBColors) will no
longer be valid or does it mean that the outstanding references will be
updated with the new values?  
[i.e. does 'reset' = 'update outstanding references' or 'invalidate
outstanding references']

Example: Assume I have a CSSStyleDeclaration named 'style'
	style.setCssText("ascent: 10"); 
	CSSValue value = style.getPropertyCSSValue("ascent"); //retrieved a
	style.setCssText("ascent: 88"); //"reset" the ascent property
Does the last line return "88", that is, does the reference get updated
after the last setCssText call or should the outstanding references no
longer be part of the CSS object tree?
Thanks for the clarification.
Received on Monday, 18 September 2000 19:45:20 UTC

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