Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 77 lines (53 sloc) 2.453 kb
c52dab0 @SimonSapin Update the documentation for 0.2
authored
1 Changelog
2 =========
3
4 Planned changes
5 ---------------
6
7 * Implement ``:target``, ``:hover``, ``:focus`` and ``:active``
8 as never matching
9 * Make a new HTML-specific ``Translator`` subclass. There, implement
10 ``:enabled``, ``:disabled``, ``:link`` and ``:visited``
11 (with all links "not visited"). Move ``:checked`` to this new
12 ``HTMLTranslator``
13 * Make all of these never match for "generic" XML. (Unless otherwise specified,
14 there is no link, checkbox, etc.)
4337b80 @SimonSapin Document planned changes.
authored
15 * Add some support for pseudo-elements by separating them from the
16 rest of the selector.
17 * Add specificity calculation.
18
c52dab0 @SimonSapin Update the documentation for 0.2
authored
19 Discussion is open if anyone is interested in implementing eg. ``:target``
20 or ``:visited`` differently, but they can always do it in a ``Translator``
21 subclass.
2280947 @SimonSapin Start a changelog
authored
22
23
775b4ef @SimonSapin Remove support for the :contains() pseudo-class.
authored
24 Version 0.2
c52dab0 @SimonSapin Update the documentation for 0.2
authored
25 -----------
775b4ef @SimonSapin Remove support for the :contains() pseudo-class.
authored
26
27 Not released yet.
28
c52dab0 @SimonSapin Update the documentation for 0.2
authored
29 * Remove the ``CSSSelector`` class. (The ``css_to_xpath()`` function is now
30 the main API.)
7624039 @SimonSapin Remove the CSSSelector class.
authored
31 * Remove support for the ``:contains()`` pseudo-class.
775b4ef @SimonSapin Remove support for the :contains() pseudo-class.
authored
32
7624039 @SimonSapin Remove the CSSSelector class.
authored
33 These changes allow cssselect to be used without lxml. (Hey, this was
34 the whole point of this project.) The tests still require lxml, though.
35 The removed parts are expected to stay in lxml for backward-compatibility.
36
c52dab0 @SimonSapin Update the documentation for 0.2
authored
37 ``:contains()`` only existed in an `early draft
775b4ef @SimonSapin Remove support for the :contains() pseudo-class.
authored
38 <http://www.w3.org/TR/2001/CR-css3-selectors-20011113/#content-selectors>`_
39 of the Selectors specification, and was removed before Level 3 stabilized.
7624039 @SimonSapin Remove the CSSSelector class.
authored
40 Internally, it used a custom XPath extension function which can be
899aff8 @SimonSapin Move the XPath translation into a new Translator class.
authored
41 difficult to express outside of lxml.
42
43
44 * Separate the XPath translation from the parsed objects into a new
c52dab0 @SimonSapin Update the documentation for 0.2
authored
45 ``Translator`` class.
899aff8 @SimonSapin Move the XPath translation into a new Translator class.
authored
46
c52dab0 @SimonSapin Update the documentation for 0.2
authored
47 Subclasses of ``Translator`` can be made to change the way that some selector
899aff8 @SimonSapin Move the XPath translation into a new Translator class.
authored
48 (eg. a pseudo-class) is implemented.
775b4ef @SimonSapin Remove support for the :contains() pseudo-class.
authored
49
50
2280947 @SimonSapin Start a changelog
authored
51 Version 0.1
c52dab0 @SimonSapin Update the documentation for 0.2
authored
52 -----------
2280947 @SimonSapin Start a changelog
authored
53
775b4ef @SimonSapin Remove support for the :contains() pseudo-class.
authored
54 Released on 2012-04-13.
55
2280947 @SimonSapin Start a changelog
authored
56 Extract lxml.cssselect from the rest of lxml and make it a stand-alone project.
57
c52dab0 @SimonSapin Update the documentation for 0.2
authored
58 Commit ``ea53ceaf7e44ba4fbb5c818ae31370932f47774e`` was taken on 2012-04-11
59 from the 'master' branch of lxml’s git repository. This is somewhere
2280947 @SimonSapin Start a changelog
authored
60 between versions 2.3.4 and 2.4.
61
62 The commit history has been rewritten to:
63
64 * Remove lxml files unrelated to cssselect
65 * Import the early history from the 'html' branch in the old SVN repository
66 * Fix author names in commits from SVN
67
68 This project has its own import name, tests and documentation. But the
69 code itself is unchanged and still depends on lxml.
70
71
72 Earlier history
c52dab0 @SimonSapin Update the documentation for 0.2
authored
73 ---------------
2280947 @SimonSapin Start a changelog
authored
74
75 Search for *cssselect* in `lxml’s changelog
76 <https://github.com/lxml/lxml/blob/master/CHANGES.txt>`_
Something went wrong with that request. Please try again.