Cssutils

Latest version: v2.11.1

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

Scan your dependencies

Page 8 of 21

0.31

!cssnormalizer does not work in this version

API CHANGES:
StyleDeclaration.addProperty is now DEPRECATED
use StyleDeclaration.setProperty instead

removed CSSParser.pprint(). use CSSParser.getStyleSheet().pprint() instead
(a StyleSheet object had a pprint method anyway)

replaced cssutils own exceptions with standard xml.dom.DOMException
and subclasses
!catch these exceptions instead of CSSException or CSSParserException

moved internal lists (e.g. StyleSheet.nodes list) to private vars
StyleSheet._nodes
!please use methods instead of implementation details


removed cssexception module
removed csscomment module, classes now directly in cssutils

more unittests, start with python cssutils/_test.py

more docs

integrated patches by Cory Dodt for SGML comments and Declaration additions
added some w3c DOM methods

0.30b

severe API changes
renamed some classes to (almost) DOM names, the CSS prefix of DOM names is ommited though

renamed are
- Stylesheet TO StyleSheet
- Rule TO StyleRule
- AtMediaRule TO MediaRule
- Declaration TO StyleDeclaration

the according methods are renamed as well

class hierarchy is changed as well, please see the example

classes are organized in new modules


0.2.x
-----

0.24

split classes in modules, has to be cleaned up again

0.24b

cleaned up cssbuilder
- Comment now may only contain text
and no comment end delimiter.
(before it had to be a complete css
comment including delimiters)
- AtMediaRule revised completely
validates given media types
new method: addMediaType(media_type)

cssparser updated to new cssbuilder interface and logic
started unittests (v0.0.0.1..., not included yet)

0.23

new CSSNormalizer.normalizeDeclarationOrder(stylesheet)

cssbuilder: added methods needed by CSSNormalizer

CSSParser.parse bugfix

0.22

CSSParser:
added \n for a declaration ending in addition to ; and }
cssbuilder:
docstrings added for import and charset
support build of a selector list in a rule

Page 8 of 21

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.