- update to 3.6.1:
* Separate option ``inline_style`` for Cleaner that only removes ``style``
attributes instead of all styles.
* Windows build support for Python 3.5.
* Exclude ``file`` fields from ``FormElement.form_values`` (as browsers do).
* Try to provide base URL from ``Resolver.resolve_string()``.
* More accurate float serialisation in ``objectify.FloatElement``.
* Repair XSLT error logging.
OBS-URL: https://build.opensuse.org/request/show/419562
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lxml?expand=0&rev=90
- Drop lxml-dont-depend-on-URL-formatting-in-test.patch, merged upstream
- Update to 3.4.3:
* Expression cache in ElementPath was ignored. Fix by Changaco.
* LP#1426868: Passing a default namespace and a prefixed namespace mapping
as nsmap into ``xmlfile.element()`` raised a ``TypeError``.
* LP#1421927: DOCTYPE system URLs were incorrectly quoted when containing
double quotes. Patch by Olli Pottonen.
* LP#1419354: meta-redirect URLs were incorrectly processed by
``iterlinks()`` if preceded by whitespace.
* LP#1415907: Crash when creating an XMLSchema from a non-root element
of an XML document.
* LP#1369362: HTML cleaning failed when hitting processing instructions
with pseudo-attributes.
* ``CDATA()`` wrapped content was rejected for tail text.
* CDATA sections were not serialised as tail text of the top-level element.
* New ``htmlfile`` HTML generator to accompany the incremental ``xmlfile``
serialisation API. Patch by Burak Arslan.
* ``lxml.sax.ElementTreeContentHandler`` did not initialise its superclass.
OBS-URL: https://build.opensuse.org/request/show/298550
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lxml?expand=0&rev=80
- Update to version 3.3.2:
- The properties resolvers and version, as well as the methods
set_element_class_lookup() and makeelement(), were lost from iterparse
objects.
- LP#1222132: instances of XMLSchema, Schematron and RelaxNG did not clear
their local error_log before running a validation.
- LP#1238500: lxml.doctestcompare mixed up "expected" and "actual" in
attribute values.
- Some file I/O tests were failing in MS-Windows due to incorrect temp file
usage. Initial patch by Gabi Davar.
- LP#910014: duplicate IDs in a document were not reported by DTD
validation.
- LP#1185332: tostring(method="html") did not use HTML serialisation
semantics for trailing tail text. Initial patch by Sylvain Viollon.
- LP#1281139: .attrib value of Comments lost its mutation methods in 3.3.0.
Even though it is empty and immutable, it should still provide the same
interface as that returned for Elements.
- Run tests during build
OBS-URL: https://build.opensuse.org/request/show/224393
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lxml?expand=0&rev=73
- update to 3.2.1:
* The methods ``apply_templates()`` and ``process_children()`` of XSLT
extension elements have gained two new boolean options ``elements_only``
and ``remove_blank_text`` that discard either all strings or whitespace-only
strings from the result list.
* When moving Elements to another tree, the namespace cleanup mechanism
no longer drops namespace prefixes from attributes for which it finds
a default namespace declaration, to prevent them from appearing as
unnamespaced attributes after serialisation.
* Returning non-type objects from a custom class lookup method could lead
to a crash.
* Instantiating and using subtypes of Comments and ProcessingInstructions
crashed.
OBS-URL: https://build.opensuse.org/request/show/175226
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lxml?expand=0&rev=56
- update to 3.2.0:
* Leading whitespace could change the behaviour of the string
parsing functions in ``lxml.html``.
* LP#599318: The string parsing functions in ``lxml.html`` are more robust
in the face of uncommon HTML content like framesets or missing body tags.
Patch by Stefan Seelmann.
* LP#712941: I/O errors while trying to access files with paths that contain
non-ASCII characters could raise ``UnicodeDecodeError`` instead of properly
reporting the ``IOError``.
* LP#673205: Parsing from in-memory strings disabled network access in the
default parser and made subsequent attempts to parse from a URL fail.
* LP#971754: lxml.html.clean appends 'nofollow' to 'rel' attributes instead
of overwriting the current value.
* LP#715687: lxml.html.clean no longer discards scripts that are explicitly
allowed by the user provided whitelist. Patch by Christine Koppelt.
- update to 3.2.0:
* Leading whitespace could change the behaviour of the string
parsing functions in ``lxml.html``.
* LP#599318: The string parsing functions in ``lxml.html`` are more robust
in the face of uncommon HTML content like framesets or missing body tags.
Patch by Stefan Seelmann.
* LP#712941: I/O errors while trying to access files with paths that contain
non-ASCII characters could raise ``UnicodeDecodeError`` instead of properly
reporting the ``IOError``.
* LP#673205: Parsing from in-memory strings disabled network access in the
default parser and made subsequent attempts to parse from a URL fail.
* LP#971754: lxml.html.clean appends 'nofollow' to 'rel' attributes instead
of overwriting the current value.
* LP#715687: lxml.html.clean no longer discards scripts that are explicitly
OBS-URL: https://build.opensuse.org/request/show/173959
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lxml?expand=0&rev=54
* lxml.html.tostring() gained new serialisation options with_tail and doctype.
* Fixed a crash when using iterparse() for HTML parsing and requesting start events.
* Fixed parsing of more selectors in cssselect. Whitespace before
pseudo-elements and pseudo-classes is significant as it is a descendant
combinator. "E :pseudo" should parse the same as "E *:pseudo", not "E:pseudo".
* lxml.html.diff no longer raises an exception when hitting 'img' tags without 'src' attribute.
- Changes from version 2.3.2:
* lxml.objectify.deannotate() has a new boolean option cleanup_namespaces to
remove the objectify namespace declarations (and generally clean up the
namespace declarations) after removing the type annotations.
* lxml.objectify gained its own SubElement() function as a copy of
etree.SubElement to avoid an otherwise redundant import of lxml.etree on the user side.
* Fixed the "descendant" bug in cssselect a second time
* Fixed parsing of some selectors in cssselect.
- Changes from version 2.3.1:
* New option kill_tags in lxml.html.clean to remove specific tags and their
content (i.e. their whole subtree).
* pi.get() and pi.attrib on processing instructions to parse
pseudo-attributes from the text content of processing instructions.
* lxml.get_include() returns a list of include paths that can be used to
compile external C code against lxml.etree.
* Resolver.resolve_file() takes an additional option close_file that
configures if the file(-like) object will be closed after reading or not.
* HTML cleaning didn't remove 'data:' links.
* The html5lib parser integration now uses the 'official' implementation in
html5lib itself, which makes it work with newer releases of the library.
* In lxml.sax, endElementNS() could incorrectly reject a plain tag name when
the corresponding start event inferred the same plain tag name to be in the default namespace.
* When an open file-like object is passed into parse() or iterparse(), the
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lxml?expand=0&rev=38
Features added
* When looking for children, lxml.objectify takes '{}tag' as
meaning an empty namespace, as opposed to the parent namespace.
Bugs fixed
* When finished reading from a file-like object, the parser
immediately calls its close() method.
* When finished parsing, iterparse() immediately closes the input
file.
* Work-around for libxml2 bug that can leave the HTML parser in a
non-functional state after parsing a severly broken document (fixed
in libxml2 2.7.8).
* marque tag in HTML cleanup code is correctly named marquee.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lxml?expand=0&rev=30