A Python package to parse and build CSS Cascading Style Sheets. (Not a renderer though!)
- **API CHANGE**: ``cssutils.parseURL`` has been renamed to
parseUrl for consistency with
href (before called
url) is the first and mandatory
+ **BUGFIX**: Fix the streamreader in the codec: Honor the encoding
if one is passed to the constructor instead of trying to detect it from the stream.
+ **BUGFIX**: Reading referenced styleSheet in CSSImportRule did
not succeed as no encoding information is passed along. Encoding of referenced sheets is always retrieved via HTTP or from imported sheet itself. Fixed lots of unchecked cases and simplified exception handling when reading a referenced sheet.
+ BUGFIX: Setting ``atkeyword`` of @rules checks if it is a valid
keyword for the specific rule. E.g. an @import rule accepts
+ BUGFIX: Fixed setting ``name`` of CSSImportRule. Setting ``name``
other than with a string results in xml.dom.SyntaxErr raised now
+ BUGFIX: ``CSSStyleSheet.type`` with a fixed value of "text/css"
and other readonly properties are really readonly now
CSSValue, CSSValueList, and CSSPrimitiveValue and the relevant
methods/properties Property.cssValue and
CSSStyleDeclaration.getPropertyCSSValue are more or less DEPRECATED and
will probably be replaced with interfaces defined in CSSOM. For now use
the properties and methods that handle values as simple strings, e.g.
Property.value. As the aforementioned classes are not hardly that
useful anyway this should not be a big problem but please beware if you
use or have used them.
If you think this a bad idea please let me know!
cssutils is published under the LGPL version 2.1 or later, see http://cthedot.de/cssutils/
encutils <http://cthedot.de/encutils/>__ has been
to version 0.8.2 with a compatible LGPL license.
<http://cthedot.de/restserver/>__ has been updates to version 2.1 which
is in the public domain now (no Creative Commons license anymore). So
only a single license (the LGPL) is used throughout cssutils now. If you
have other licensing needs please let me know.
For download options see http://cthedot.de/cssutils/
cssutils needs Python 2.4 or higher (tested with Python 2.5.2 on Vista only)
Bug reports (via Google code), comments, etc are very much appreciated! Thanks.