Package cssutils :: Module domimplementationcss :: Class DOMImplementationCSS
[hide private]
[frames] | no frames]

Class DOMImplementationCSS

source code

object --+
         |
        DOMImplementationCSS

This interface allows the DOM user to create a CSSStyleSheet outside the context of a document. There is no way to associate the new CSSStyleSheet with a document in DOM Level 2.

Instance Methods [hide private]
 
hasFeature(self, feature, version) source code
 
createCSSStyleSheet(title, media)
Creates a new CSSStyleSheet.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  _features = [('css', '2.0'), ('stylesheets', '2.0')]
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

createCSSStyleSheet(title, media)

source code 

Creates a new CSSStyleSheet.

title of type DOMString
The advisory title. See also the Style Sheet Interfaces section.
media of type DOMString
The comma-separated list of media associated with the new style sheet. See also the Style Sheet Interfaces section.
returns
CSSStyleSheet: A new CSS style sheet.
TODO: DOMException
SYNTAX_ERR: Raised if the specified media string value has a syntax error and is unparsable.