Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 155 lines (103 sloc) 4.635 kb
c52dab0 Simon Sapin Update the documentation for 0.2
authored
1 Changelog
2 =========
3
4f1fb91 Simon Sapin Changelog for 0.7.1
authored
4 Version 0.7.1
5 -------------
6
7 Released on 2012-06-14. Code name *remember-to-test-with-tox*.
8
9 0.7 broke the parser in Python 2.4 and 2.5; the tests in 2.x.
10 Now all is well again.
11
12 Also, pseudo-elements are now correctly made lower-case. (They are supposed
13 to be case-insensitive.)
14
15
13023ed Simon Sapin Changelog for 0.7
authored
16 Version 0.7
17 -----------
18
19 Released on 2012-06-14.
20
21 Bug fix release: see #2, #7 and #10 on GitHub.
22
23 * The tokenizer and parser have been rewritten to be much closer to the
24 specified grammar. In particular, non-ASCII characters and backslash-escapes
25 are now handled correctly.
26 * Special characters are protected in the output so that generated XPath
27 exrpessions should always be valid
28 * The ``~=``, ``^=`` and ``*=`` attribute operators now correctly never match
29 when used with an empty string.
30
31
19443c7 Simon Sapin Make sure Selector.pseudo_element is unicode, not a Symbol.
authored
32 Version 0.6.1
33 -------------
34
35 Released on 2012-04-25.
36
37 Make sure that internal token objects do not "leak" into the public API and
38 :attr:`Selector.pseudo_element` is an unicode string.
39
40
856621a Simon Sapin Add support for :lang(), close #3
authored
41 Version 0.6
42 -----------
43
ab92f28 Simon Sapin Tag v0.6
authored
44 Released on 2012-04-24.
45
856621a Simon Sapin Add support for :lang(), close #3
authored
46 * In ``setup.py`` use setuptools/distribute if available, but fall back
47 on distutils.
48 * Implement the ``:lang()`` pseudo-class, although it is only based on
49 ``xml:lang`` or ``lang`` attributes. If the document language is known from
50 some other meta-data (like a ``Content-Language`` HTTP header or ``<meta>``
51 element), a workaround is to set a lang attribute on the root element.
52
53
35a2f57 Simon Sapin Fix case-sensitivity issues
authored
54 Version 0.5
55 -----------
56
444884e Simon Sapin Tag v0.5
authored
57 Released on 2012-04-20.
35a2f57 Simon Sapin Fix case-sensitivity issues
authored
58
59 * Fix case sensitivity issues.
3d8fd09 Simon Sapin Implement :link per the HTML5 spec.
authored
60 * Implement :class:`HTMLTranslator` based on the `HTML5 specification`_
61 rather than guessing; add the ``xhtml`` parameter.
b551594 Simon Sapin Better test coverage.
authored
62 * Several bug fixes and better test coverage.
3d8fd09 Simon Sapin Implement :link per the HTML5 spec.
authored
63
64 .. _HTML5 specification: http://www.w3.org/TR/html5/links.html#selectors
35a2f57 Simon Sapin Fix case-sensitivity issues
authored
65
66
817c1c5 Simon Sapin New API:parse, Selector, selector_to_xpath
authored
67 Version 0.4
68 -----------
c52dab0 Simon Sapin Update the documentation for 0.2
authored
69
b83dcfa Simon Sapin Tag v0.4
authored
70 Released on 2012-04-18.
71
817c1c5 Simon Sapin New API:parse, Selector, selector_to_xpath
authored
72 * Add proper support for pseudo-elements
73 * Add specificity calculation
74 * Expose the :func:`parse` function and the parsed :class:`Selector` objects
75 in the API.
76 * Add the :meth:`~GenericTranslator.selector_to_xpath` method.
4337b80 Simon Sapin Document planned changes.
authored
77
2280947 Simon Sapin Start a changelog
authored
78
b3ec6e0 Simon Sapin Allow multiple HASH selectors
authored
79 Version 0.3
80 -----------
81
8f693a6 Simon Sapin Tag v0.3
authored
82 Released on 2012-04-17.
d9be33d Simon Sapin Update the documentation for 0.3
authored
83
84 * Fix many parsing bugs.
85 * Rename the :class:`Translator` class to :class:`GenericTranslator`
86 * There, implement ``:target``, ``:hover``, ``:focus``, ``:active``
87 ``:checked``, ``:enabled``, ``:disabled``, ``:link`` and ``:visited``
88 as never matching.
89 * Make a new HTML-specific ``HTMLTranslator`` subclass. There, implement
90 ``:checked``, ``:enabled``, ``:disabled``, ``:link`` and ``:visited``
91 as appropriate for HTML, with all links "not visited".
92 * Remove the :func:`css_to_xpath` function. The translator classes
93 are the new API.
5491775 Simon Sapin Add :contains() back, but case-sensitive.
authored
94 * Add support for ``:contains()`` back, but case-sensitive. lxml will
95 override it to be case-insensitive for backward-compatibility.
d9be33d Simon Sapin Update the documentation for 0.3
authored
96
97 Discussion is open if anyone is interested in implementing eg. ``:target``
98 or ``:visited`` differently, but they can always do it in a ``Translator``
99 subclass.
b3ec6e0 Simon Sapin Allow multiple HASH selectors
authored
100
101
775b4ef Simon Sapin Remove support for the :contains() pseudo-class.
authored
102 Version 0.2
c52dab0 Simon Sapin Update the documentation for 0.2
authored
103 -----------
775b4ef Simon Sapin Remove support for the :contains() pseudo-class.
authored
104
899bd93 Simon Sapin Docs: add a quickstart, document the whole public API.
authored
105 Released on 2012-04-16.
775b4ef Simon Sapin Remove support for the :contains() pseudo-class.
authored
106
c52dab0 Simon Sapin Update the documentation for 0.2
authored
107 * Remove the ``CSSSelector`` class. (The ``css_to_xpath()`` function is now
108 the main API.)
7624039 Simon Sapin Remove the CSSSelector class.
authored
109 * Remove support for the ``:contains()`` pseudo-class.
775b4ef Simon Sapin Remove support for the :contains() pseudo-class.
authored
110
7624039 Simon Sapin Remove the CSSSelector class.
authored
111 These changes allow cssselect to be used without lxml. (Hey, this was
112 the whole point of this project.) The tests still require lxml, though.
113 The removed parts are expected to stay in lxml for backward-compatibility.
114
c52dab0 Simon Sapin Update the documentation for 0.2
authored
115 ``:contains()`` only existed in an `early draft
775b4ef Simon Sapin Remove support for the :contains() pseudo-class.
authored
116 <http://www.w3.org/TR/2001/CR-css3-selectors-20011113/#content-selectors>`_
117 of the Selectors specification, and was removed before Level 3 stabilized.
7624039 Simon Sapin Remove the CSSSelector class.
authored
118 Internally, it used a custom XPath extension function which can be
899aff8 Simon Sapin Move the XPath translation into a new Translator class.
authored
119 difficult to express outside of lxml.
120
121
122 * Separate the XPath translation from the parsed objects into a new
c52dab0 Simon Sapin Update the documentation for 0.2
authored
123 ``Translator`` class.
899aff8 Simon Sapin Move the XPath translation into a new Translator class.
authored
124
c52dab0 Simon Sapin Update the documentation for 0.2
authored
125 Subclasses of ``Translator`` can be made to change the way that some selector
899aff8 Simon Sapin Move the XPath translation into a new Translator class.
authored
126 (eg. a pseudo-class) is implemented.
775b4ef Simon Sapin Remove support for the :contains() pseudo-class.
authored
127
128
2280947 Simon Sapin Start a changelog
authored
129 Version 0.1
c52dab0 Simon Sapin Update the documentation for 0.2
authored
130 -----------
2280947 Simon Sapin Start a changelog
authored
131
775b4ef Simon Sapin Remove support for the :contains() pseudo-class.
authored
132 Released on 2012-04-13.
133
2280947 Simon Sapin Start a changelog
authored
134 Extract lxml.cssselect from the rest of lxml and make it a stand-alone project.
135
c52dab0 Simon Sapin Update the documentation for 0.2
authored
136 Commit ``ea53ceaf7e44ba4fbb5c818ae31370932f47774e`` was taken on 2012-04-11
137 from the 'master' branch of lxml’s git repository. This is somewhere
2280947 Simon Sapin Start a changelog
authored
138 between versions 2.3.4 and 2.4.
139
140 The commit history has been rewritten to:
141
142 * Remove lxml files unrelated to cssselect
143 * Import the early history from the 'html' branch in the old SVN repository
144 * Fix author names in commits from SVN
145
146 This project has its own import name, tests and documentation. But the
147 code itself is unchanged and still depends on lxml.
148
149
150 Earlier history
c52dab0 Simon Sapin Update the documentation for 0.2
authored
151 ---------------
2280947 Simon Sapin Start a changelog
authored
152
153 Search for *cssselect* in `lxml’s changelog
154 <https://github.com/lxml/lxml/blob/master/CHANGES.txt>`_
Something went wrong with that request. Please try again.