Package cssutils :: Package css :: Module csscomment :: Class CSSComment |
[hide private]
[frames] | no frames]

# Class CSSComment

source code

     object --+
              |
      util.Base --+
                  |
    cssrule.CSSRule --+
                      |
                     CSSComment

(cssutils) a CSS comment

# Properties

cssText: of type DOMString
  The comment text including comment delimiters

Inherits properties from CSSRule

# Format

    /*...*/

Nested Classes | [hide private]
Inherited from `util.Base` (private): `_ttypes`

Instance Methods | [hide private]
__init__(self, cssText=None, readonly=False) | source code
_getCssText(self) returns serialized property cssText | source code
_setCssText(self, cssText) textual text to set or tokenlist which is not tokenized anymore. | source code
__repr__(self) repr(x) | source code
__str__(self) str(x) | source code
Inherited from `cssrule.CSSRule` (private): `_getTypeString` Inherited from `util.Base` (private): `_checkReadonly`, `_tokenize`, `_tokensupto`, `_valuestr` Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`

Static Methods | [hide private]
Inherited from `util.Base` (private): `_normalize`

Class Variables | [hide private]
| type = `-1` The type of this rule, as defined by a CSSRule type constant.
Inherited from `cssrule.CSSRule`: `FONT_FACE_RULE`, `UNKNOWN_RULE` Inherited from `cssrule.CSSRule` (private): `_typestrings` Inherited from `util.Base` (private): `_log`

Properties | [hide private]
| cssText (cssutils) Textual representation of this comment
Inherited from `cssrule.CSSRule`: `typeString` Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, cssText=None, readonly=False) (Constructor) | source code
Overrides: cssrule.CSSRule.__init__

### _getCssText(self) | source code
returns serialized property cssText Overrides: cssrule.CSSRule._getCssText

### _setCssText(self, cssText) | source code
cssText textual text to set or tokenlist which is not tokenized anymore. May also be a single token for this rule parser if called from cssparser directly this is Parser instance DOMException on setting SYNTAX_ERR: (self) Raised if the specified CSS string value has a syntax error and is unparsable. INVALID_MODIFICATION_ERR: (self) Raised if the specified CSS string value represents a different type of rule than the current one. NO_MODIFICATION_ALLOWED_ERR: (CSSRule) Raised if the rule is readonly. Overrides: cssrule.CSSRule._setCssText

### __repr__(self) (Representation operator) | source code
repr(x) Overrides: object.__repr__ (inherited documentation)

### __str__(self) (Informal representation operator) | source code
str(x) Overrides: object.__str__ (inherited documentation)

Property Details | [hide private]

  ### cssText (cssutils) Textual representation of this comment Get Method: cssutils.css.csscomment.CSSComment._getCssText(self) - returns serialized property cssText Set Method: cssutils.css.csscomment.CSSComment._setCssText(self, cssText) - textual text to set or tokenlist which is not tokenized anymore. Delete Method:
      None