Cssutils

Latest version: v2.11.1

Safety actively analyzes 682404 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 7 of 21

0.54

API CHANGES
Comment.cssText contains comment delimiter
attribute text of Comment private now, renamed to _text
ALPHA new StyleSheet.cssText property (not in W3C DOM)

BUG FIXES
Commentable checked only for str, not unicode. now both
Parser did not raises all errors, might still not do (s. a.)

added unittest for __init__ module

0.53

!cssnormalizer does not work in this version - on hold for 1.0

new cssunknownrule.UnknownRule (moved out of module cssrule)
parser now creates Unknown At-Rules in the resulting StyleSheet. they
are no longer just dumped and reported in the parser log.

0.52

!cssnormalizer does not work in this version - on hold for 1.0

whitespace in comments will be preserved now
added unittest

0.51

!cssnormalizer does not work in this version - on hold for 1.0

API CHANGES
cssrule.SimpleAtRule DEPRECATED and empty
cssmediarule.MediaRule init param "medias" renamed to "media"
use subclasses of CSSRule (CharsetRule, ImportRule,
FontFaceRule or PageRule) instead
StyleRule constructor can be called with arguments (again...)
Comment attribute "comment" renamed to "text"

implemented at least partly almost all DOM Level 2 CSS interfaces now
so the API should be more stable from now on

new statemachine and lexer helper classes for parsing
complete rewrite of CSSParser
CSSParser and lexer put all error messages in a log now
you might give your own log for messages
CSSParser might be configured just to log errors or to raise
xml.dom.DOMExceptions when finding an error


0.4.x
-----

0.41

!cssnormalizer does not work in this version - on hold for 1.0

API CHANGES
StyleSheet.getRules() returns a RuleList now
class Selector removed, integrated into Rules now

moved most Classes to own module
StyleSheet, StyleRule, MediaRule, ...

0.40a

!cssnormalizer does not work in this version

API CHANGES:
cssbuilder.RuleList subclasses list
cssbuilder.Selector moved to cssrules
attribute style of class StyleRule made private (_style)
removed StyleRule.clearStyleDeclaration
attribute selectorlist of class Selector renamed to _selectors and made private

NEW:
MediaList class

moved tests to directory test

made a dist package complete with setup.py


0.3.x
-----

Page 7 of 21

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.