Package cssutils :: 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.

This class is its own factory, as it is given to xml.dom.registerDOMImplementation which simply calls it and receives an instance of this class then.



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

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

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

Inherited from object: __class__

Method Details [hide private]

createCSSStyleSheet(self, 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.

Class Variable Details [hide private]

_features

Value:
[('css', '1.0'),
 ('css', '2.0'),
 ('stylesheets', '1.0'),
 ('stylesheets', '2.0')]