2.1.1 [DOM Level 2 - Style] Section 1.2, Style Sheet Interfaces
V0001:
-
href of type DOMString, readonly If the style sheet is a linked style sheet, the value of its attribute is its location. For inline style sheets, the value of this attribute is null.
Quirks Mode, IE7 Mode, and IE8 Mode (All Versions)
The href attribute of the StyleSheet interface is not treated as read-only. It is possible to get and set the href attribute. If href is set to a new value, the new style sheet is read and applied to the document in place of the original style sheet.
The href attribute for an inline style sheet is returned as an empty string, instead of null.
V0002:
-
media of type MediaList, readonly The intended destination media for style information. The media is often specified in the ownerNode. If no media has been specified, the MediaList will be empty.
Quirks Mode, IE7 Mode, and IE8 Mode (All Versions)
The media attribute of the StyleSheet interface has read/write access; it is of type string, not MediaList.
V0003:
-
ownerNode of type Node, readonly The node that associates this style sheet with the document. For HTML, this may be the corresponding LINK or STYLE element. For XML, it may be the linking processing instruction. For style sheets that are included by other style sheets, the value of this attribute is null.
Quirks Mode, IE7 Mode, and IE8 Mode (All Versions)
The ownerNode attribute of the StyleSheet interface is not supported. Similar functionality is provided by the owningElement attribute.
V0004:
-
title of type DOMString, readonly The advisory title. The title is often specified in the ownerNode.
Quirks Mode, IE7 Mode, and IE8 Mode (All Versions)
The title attribute of the StyleSheet interface has read/write access.
V0005:
-
The MediaList interface provides the abstraction of an ordered collection of media, without defining or constraining how this collection is implemented. An empty list is the same as a list that contains the medium "all". The items in the MediaList are accessible via an integral index, starting from 0.
Quirks Mode, IE7 Mode, and IE8 Mode (All Versions)
The MediaList interface is not supported. The media attribute of the StyleSheet interface is of type string, not MediaList.