~ubuntu-branches/ubuntu/oneiric/lxml/oneiric

« back to all changes in this revision

Viewing changes to CHANGES.txt

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-08-27 09:09:23 UTC
  • mfrom: (1.3.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090827090923-fwhvka191ir73s3x
Tags: 2.2.2-1
* New upstream version. Closes: #525961.
  - Includes html5parser. Closes: #521714.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
lxml changelog
3
3
==============
4
4
 
 
5
2.2.2 (2009-06-21)
 
6
==================
 
7
 
 
8
Features added
 
9
--------------
 
10
 
 
11
* New helper functions ``strip_attributes()``, ``strip_elements()``,
 
12
  ``strip_tags()`` in lxml.etree to remove attributes/subtrees/tags
 
13
  from a subtree.
 
14
 
 
15
Bugs fixed
 
16
----------
 
17
 
 
18
* Namespace cleanup on subtree insertions could result in missing
 
19
  namespace declarations (and potentially crashes) if the element
 
20
  defining a namespace was deleted and the namespace was not used by
 
21
  the top element of the inserted subtree but only in deeper subtrees.
 
22
 
 
23
* Raising an exception from a parser target callback didn't always
 
24
  terminate the parser.
 
25
 
 
26
* Only {true, false, 1, 0} are accepted as the lexical representation for
 
27
  BoolElement ({True, False, T, F, t, f} not any more), restoring lxml <= 2.0
 
28
  behaviour.
 
29
 
 
30
Other changes
 
31
-------------
 
32
 
 
33
 
 
34
2.2.1 (2009-06-02)
 
35
==================
 
36
 
 
37
Features added
 
38
--------------
 
39
 
 
40
* Injecting default attributes into a document during XML Schema
 
41
  validation (also at parse time).
 
42
 
 
43
* Pass ``huge_tree`` parser option to disable parser security
 
44
  restrictions imposed by libxml2 2.7.
 
45
 
 
46
Bugs fixed
 
47
----------
 
48
 
 
49
* The script for statically building libxml2 and libxslt didn't work
 
50
  in Py3.
 
51
 
 
52
* ``XMLSchema()`` also passes invalid schema documents on to libxml2
 
53
  for parsing (which could lead to a crash before release 2.6.24).
 
54
 
 
55
Other changes
 
56
-------------
 
57
 
 
58
 
 
59
2.2 (2009-03-21)
 
60
================
 
61
 
 
62
Features added
 
63
--------------
 
64
 
 
65
* Support for ``standalone`` flag in XML declaration through
 
66
  ``tree.docinfo.standalone`` and by passing ``standalone=True/False``
 
67
  on serialisation.
 
68
 
 
69
Bugs fixed
 
70
----------
 
71
 
 
72
* Crash when parsing an XML Schema with external imports from a
 
73
  filename.
 
74
 
 
75
 
 
76
2.2beta4 (2009-02-27)
 
77
=====================
 
78
 
 
79
Features added
 
80
--------------
 
81
 
 
82
* Support strings and instantiable Element classes as child arguments
 
83
  to the constructor of custom Element classes.
 
84
 
 
85
* GZip compression support for serialisation to files and file-like
 
86
  objects.
 
87
 
 
88
Bugs fixed
 
89
----------
 
90
 
 
91
* Deep-copying an ElementTree copied neither its sibling PIs and
 
92
  comments nor its internal/external DTD subsets.
 
93
 
 
94
* Soupparser failed on broken attributes without values.
 
95
 
 
96
* Crash in XSLT when overwriting an already defined attribute using
 
97
  ``xsl:attribute``.
 
98
 
 
99
* Crash bug in exception handling code under Python 3.  This was due
 
100
  to a problem in Cython, not lxml itself.
 
101
 
 
102
* ``lxml.html.FormElement._name()`` failed for non top-level forms.
 
103
 
 
104
* ``TAG`` special attribute in constructor of custom Element classes
 
105
  was evaluated incorrectly.
 
106
 
 
107
Other changes
 
108
-------------
 
109
 
 
110
* Official support for Python 3.0.1.
 
111
 
 
112
* ``Element.findtext()`` now returns an empty string instead of None
 
113
  for Elements without text content.
 
114
 
 
115
 
 
116
2.2beta3 (2009-02-17)
 
117
=====================
 
118
 
 
119
Features added
 
120
--------------
 
121
 
 
122
* ``XSLT.strparam()`` class method to wrap quoted string parameters
 
123
  that require escaping.
 
124
 
 
125
Bugs fixed
 
126
----------
 
127
 
 
128
* Memory leak in XPath evaluators.
 
129
 
 
130
* Crash when parsing indented XML in one thread and merging it with
 
131
  other documents parsed in another thread.
 
132
 
 
133
* Setting the ``base`` attribute in ``lxml.objectify`` from a unicode
 
134
  string failed.
 
135
 
 
136
* Fixes following changes in Python 3.0.1.
 
137
 
 
138
* Minor fixes for Python 3.
 
139
 
 
140
Other changes
 
141
-------------
 
142
 
 
143
* The global error log (which is copied into the exception log) is now
 
144
  local to a thread, which fixes some race conditions.
 
145
 
 
146
* More robust error handling on serialisation.
 
147
 
 
148
 
 
149
2.2beta2 (2009-01-25)
 
150
=====================
 
151
 
 
152
Bugs fixed
 
153
----------
 
154
 
 
155
* Potential memory leak on exception handling.  This was due to a
 
156
  problem in Cython, not lxml itself.
 
157
 
 
158
* ``iter_links`` (and related link-rewriting functions) in
 
159
  ``lxml.html`` would interpret CSS like ``url("link")`` incorrectly
 
160
  (treating the quotation marks as part of the link).
 
161
 
 
162
* Failing import on systems that have an ``io`` module.
 
163
 
 
164
 
5
165
2.1.5 (2009-01-06)
6
166
==================
7
167
 
14
174
* Failing import on systems that have an ``io`` module.
15
175
 
16
176
 
 
177
2.2beta1 (2008-12-12)
 
178
=====================
 
179
 
 
180
Features added
 
181
--------------
 
182
 
 
183
* Allow ``lxml.html.diff.htmldiff`` to accept Element objects, not
 
184
  just HTML strings.
 
185
 
 
186
Bugs fixed
 
187
----------
 
188
 
 
189
* Crash when using an XPath evaluator in multiple threads.
 
190
 
 
191
* Fixed missing whitespace before ``Link:...`` in ``lxml.html.diff``.
 
192
 
 
193
Other changes
 
194
-------------
 
195
 
 
196
* Export ``lxml.html.parse``.
 
197
 
 
198
 
17
199
2.1.4 (2008-12-12)
18
200
==================
19
201
 
23
205
* Crash when using an XPath evaluator in multiple threads.
24
206
 
25
207
 
 
208
2.0.11 (2008-12-12)
 
209
===================
 
210
 
 
211
Bugs fixed
 
212
----------
 
213
 
 
214
* Crash when using an XPath evaluator in multiple threads.
 
215
 
 
216
 
 
217
2.2alpha1 (2008-11-23)
 
218
======================
 
219
 
 
220
Features added
 
221
--------------
 
222
 
 
223
* Support for XSLT result tree fragments in XPath/XSLT extension
 
224
  functions.
 
225
 
 
226
* QName objects have new properties ``namespace`` and ``localname``.
 
227
 
 
228
* New options for exclusive C14N and C14N without comments.
 
229
 
 
230
* Instantiating a custom Element classes creates a new Element.
 
231
 
 
232
Bugs fixed
 
233
----------
 
234
 
 
235
* XSLT didn't inherit the parse options of the input document.
 
236
 
 
237
* 0-bytes could slip through the API when used inside of Unicode
 
238
  strings.
 
239
 
 
240
* With ``lxml.html.clean.autolink``, links with balanced parenthesis,
 
241
  that end in a parenthesis, will be linked in their entirety (typical
 
242
  with Wikipedia links).
 
243
 
 
244
Other changes
 
245
-------------
 
246
 
 
247
 
26
248
2.1.3 (2008-11-17)
27
249
==================
28
250
 
59
281
-------------
60
282
 
61
283
 
 
284
2.0.10 (2008-11-17)
 
285
===================
 
286
 
 
287
Bugs fixed
 
288
----------
 
289
 
 
290
* Ref-count leaks when lxml enters a try-except statement while an
 
291
  outside exception lives in sys.exc_*(). This was due to a problem in
 
292
  Cython, not lxml itself.
 
293
 
 
294
 
62
295
2.1.2 (2008-09-05)
63
296
==================
64
297
 
82
315
-------------
83
316
 
84
317
 
 
318
2.0.9 (2008-09-05)
 
319
==================
 
320
 
 
321
Bugs fixed
 
322
----------
 
323
 
 
324
* Memory problem when passing documents between threads.
 
325
 
 
326
* Target parser did not honour the ``recover`` option and raised an
 
327
  exception instead of calling ``.close()`` on the target.
 
328
 
 
329
 
85
330
2.1.1 (2008-07-24)
86
331
==================
87
332
 
101
346
-------------
102
347
 
103
348
 
 
349
2.0.8 (2008-07-24)
 
350
==================
 
351
 
 
352
Features added
 
353
--------------
 
354
 
 
355
* ``lxml.html.rewrite_links()`` strips links to work around documents
 
356
  with whitespace in URL attributes.
 
357
 
 
358
Bugs fixed
 
359
----------
 
360
 
 
361
* Crash when parsing XSLT stylesheets in a thread and using them in
 
362
  another.
 
363
 
 
364
* CSS selector parser dropped remaining expression after a function
 
365
  with parameters.
 
366
 
 
367
Other changes
 
368
-------------
 
369
 
 
370
 
104
371
2.1 (2008-07-09)
105
372
================
106
373