blob: 71d2906c6d7bae4c01b57778633cd226d0392878 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: DOMImplementationCSS.xml 225913 2001-06-01 11:15:37Z dims $ -->
<interface id="CSS-DOMImplementationCSS" name="DOMImplementationCSS" since="DOM
Level 2" inherits="DOMImplementation">
<descr>
<p>
This interface allows the DOM user to create a <code>CSSStyleSheet</code>
outside the context of a document. There is no way to associate the new
<code>CSSStyleSheet</code> with a document in DOM Level 2.
</p>
</descr>
<method id='CSS-DOMImplementationCSS-createCSSStyleSheet' name="createCSSStyleSheet">
<descr>
<p>Creates a new <code>CSSStyleSheet</code>.</p>
</descr>
<parameters>
<param name="title" type="DOMString" attr="in">
<descr>
<p>
The advisory title. See also the <specref
ref="StyleSheets-StyleSheet-title"/> section.
</p>
</descr>
</param>
<param name="media" type="DOMString" attr="in">
<descr>
<p>
The comma-separated list of media associated with the new style
sheet. See also the <specref ref="StyleSheets-StyleSheet-media"/>
section.
</p>
</descr>
</param>
</parameters>
<returns type="CSSStyleSheet">
<descr>
<p>A new CSS style sheet.</p>
</descr>
</returns>
<raises>
<exception name="DOMException">
<descr>
<p>
SYNTAX_ERR: Raised if the specified media string value has a syntax
error and is unparsable.
</p>
</descr>
</exception>
</raises>
</method>
</interface>