Because the style values are cascaded from style sheet to style sheet and may include some inline styles as well as some explicit styles, objects need to maintain a current style value that is the result of all the inheritances applied on top of one another.
In addition they maintain a run-time style which reflects dynamic changes as well. The runtime style is based on the current style in the first place.
The value of this property is a reference to a style object. However, it does not refer to the same style object as the style property. You can test for this with the isObjectEqual() function that we have documented elsewhere.
Prev | Home | Next |
Element.replaceAdjacentText() | Up | Element.scopeName |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |