Cssselect

Latest version: v1.2.0

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

Scan your dependencies

Page 2 of 4

0.9.2

-------------

Released on 2016-06-15.

* Distribute as universal wheel.
* Add support for Python 3.3, 3.4 and 3.5.
* Drop support for Python 2.5 as testing is getting difficult.
* Improve tests on pseudo-elements.

0.9.1

-------------

Released on 2013-10-17.

* **Backward incompatible change from 0.9**:
:meth:`~GenericTranslator.selector_to_xpath` defaults to
ignoring pseudo-elements,
as it did in 0.8 and previous versions.
(:meth:`~GenericTranslator.css_to_xpath` doesn’t change.)
* Drop official support for Python 2.4 and 3.1,
as testing was becoming difficult.
Nothing will break overnight,
but future releases may on may not work on these versions.
Older releases will remain available on PyPI.

0.9

-----------

Released on 2013-10-11.

Add parser support for :attr:`functional
pseudo-elements <Selector.pseudo_element>`.

*Update:*
This version accidentally introduced a **backward incompatible** change:
:meth:`~GenericTranslator.selector_to_xpath` defaults to
rejecting pseudo-elements instead of ignoring them.

0.8

-----------

Released on 2013-03-15.

Improvements:

* `22 <https://github.com/SimonSapin/cssselect/issues/22>`_
Let extended translators override what XPathExpr class is used
* `19 <https://github.com/SimonSapin/cssselect/issues/19>`_
Use the built-in ``lang()`` XPath function
for implementing the ``:lang()`` pseudo-class
with XML documents.
This is probably faster than ``ancestor-or-self::``.

Bug fixes:

* `14 <https://github.com/SimonSapin/cssselect/issues/14>`_
Fix non-ASCII pseudo-classes. (Invalid selector instead of crash.)
* `20 <https://github.com/SimonSapin/cssselect/issues/20>`_
As per the spec, elements containing only whitespace are not considered empty
for the ``:empty`` pseudo-class.

0.7.1

-------------

Released on 2012-06-14. Code name *remember-to-test-with-tox*.

0.7 broke the parser in Python 2.4 and 2.5; the tests in 2.x.
Now all is well again.

Also, pseudo-elements are now correctly made lower-case. (They are supposed
to be case-insensitive.)

0.7

-----------

Released on 2012-06-14.

Bug fix release: see 2, 7 and 10 on GitHub.

* The tokenizer and parser have been rewritten to be much closer to the
specified grammar. In particular, non-ASCII characters and backslash-escapes
are now handled correctly.
* Special characters are protected in the output so that generated XPath
exrpessions should always be valid
* The ``~=``, ``^=`` and ``*=`` attribute operators now correctly never match
when used with an empty string.

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.