DocumentStyle object (Object/DOM)

Added at DOM level 2 to support document related stylesheets.


DOM level - 2
JavaScript - 1.5
Netscape - 6.0
JavaScript syntax:NmyDocumetStyle = new DocumentStyle()

This is a major upgrade in progress. At present the DOM level 2 standards run to several hundred pages and are extremely powerful.

The event model is supported by the Netscape 6.0 browser. Some (probably most) of the style model is supported by MSIE and Netscape 6.0 but there are some shortcomings. For instance, MSIE incorrectly names some properties and object types and it introduces some non-compliant extra methods and properties which are not portable.

The document styling interface is likely to be an area of major amounts of work on the next round of browser upgrades.

DOM mandates that this object should have a single property:

Note that MSIE takes that property name and uses it as an object type. DOM mandates that the property should point at a StyleSheetList object and not a styleSheets object.