summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Avoid using the deprecated "imp" module.HEADmasterStefan Behnel2023-05-111-1/+2
| | | | Closes https://bugs.launchpad.net/lxml/+bug/2018137
* Avoid using the deprecated "imp" module.Stefan Behnel2023-05-111-2/+4
| | | | Closes https://bugs.launchpad.net/lxml/+bug/2018137
* Set master version to 5.0.0a0 to diverge from 4.9.x.Stefan Behnel2023-03-261-1/+1
|
* Prevent lxml.objectify from accepting non-decimal digit characters as ↵Stefan Behnel2023-03-032-1/+2
| | | | integers/numbers and from representing them as IntElement.
* Use "noexcept" modifiers for callback functions and fix some exception value ↵Stefan Behnel2022-12-239-50/+50
| | | | declaration bugs found by Cython 3.0.
* Replace outdated URL in error message.Stefan Behnel2022-12-221-1/+1
|
* Simplify code.Stefan Behnel2022-12-221-2/+2
|
* Call super() from CSSSelector constructor to help with used side inheritance.Stefan Behnel2022-12-221-1/+1
|
* Use generic 'nogil' block markers in pxd declarations where possible, except ↵Stefan Behnel2022-12-1512-297/+297
| | | | for a few callback declarations that may be used for regular GIL functions.
* Prepare release of 4.9.2.Stefan Behnel2022-12-061-1/+1
|
* Improve the docstring about the "profile_run" XSLT() argument.Stefan Behnel2022-08-131-1/+2
|
* Work around libxml2 bug in affected versions that failed to reset the ↵Stefan Behnel2022-07-193-2/+5
| | | | | | namespace count in the parser context. See https://gitlab.gnome.org/GNOME/libxml2/-/issues/378
* LP#1981760: Register "Element.attrib" as collections.abc.MutableMapping.Stefan Behnel2022-07-152-1/+16
|
* Prevent parse failure in new test from leaking into later test runs.lxml-4.9.1Stefan Behnel2022-07-011-2/+4
|
* Prepare release of lxml 4.9.1.Stefan Behnel2022-07-011-1/+1
|
* Fix a crash when incorrect parser input occurs together with usages of ↵Stefan Behnel2022-07-013-8/+30
| | | | iterwalk() on trees generated by the same parser.
* Remove debug print from test.Stefan Behnel2022-05-311-2/+0
|
* Prepare release of 4.9.0.Stefan Behnel2022-05-301-1/+1
|
* Add a test for https://bugs.launchpad.net/lxml/+bug/1965070 leaving out the ↵Stefan Behnel2022-05-301-0/+25
| | | | actual failure case.
* #undefine "PyUnicode_IS_READY" and friends in Py3.12 since CPython still ↵Stefan Behnel2022-05-172-8/+6
| | | | defines them as dummies.
* Adapt to PyUnicode wstr removal in Py3.12.Stefan Behnel2022-05-171-0/+17
| | | | See https://peps.python.org/pep-0623/
* Add new error constant from libxml2 2.9.14.Stefan Behnel2022-05-172-0/+2
|
* Fix inheritance order of mixin classes in lxml.html (GH-340)xmo-odoo2022-05-172-10/+48
| | | | | | | | | | | As the old FIXME comment from https://github.com/lxml/lxml/commit/8132c755adad4a75ba855d985dd257493bccc7fd notes, the mixin should come first for the inheritance to be correct (the left-most class is the first in the MRO, at least if no diamond inheritance is involved). Also fix the odd `super` call in `HtmlMixin`, likely stemming from the incorrect MRO. Fixes the inheritance order of all `HTML*` base classes though it probably doesn't matter for other than `HtmlElement`.
* docs: explain the global "set_element_class_lookup()" function better (GH-341)xmo-odoo2022-03-131-1/+18
| | | Also set "inherited-members" in the autodoc config to make the methods of internal classes visible, e.g. of "_BaseParser".
* Extend docstring to mention Element.set(name, None) for HTML documents.Stefan Behnel2022-03-081-0/+2
|
* Update outdated comment.Stefan Behnel2022-02-221-1/+1
|
* Clean up some docstrings.Stefan Behnel2022-02-221-4/+5
|
* Prepare release of 4.8.0.lxml-4.8.0Stefan Behnel2022-02-171-1/+1
|
* Modernise some code in the ElementMaker implementation.Stefan Behnel2022-02-141-21/+11
|
* Allow QName as tag value in ElementMaker, not just strings.Stefan Behnel2022-02-143-2/+24
|
* Use expected XSD spellings for xsi:double infinity and NaN (GH-338)Tobias Deiminger2022-02-132-4/+25
| | | | | | | | | | | | | W3C specification for xsd:double says > The special values positive and negative infinity and > not-a-number have lexical representations INF, -INF and NaN, > respectively. Thus case matters. The previously used float.__repr__ would generate "inf", "-inf", "nan". Now we prepend special handling to get "INF", "-INF", "NaN" instead (which is still pytype compatible). Includes minor non-functional alignments of related bool to text code, and tests to assert its XML schema conformance as well.
* Allow Path-like objects for file arguments (GH-337)Henning Janssen2022-02-1213-4/+119
| | | Use "PyOS_FSPath()" if available (Py3.6+). Otherwise, manually check for "__fspath__", in case an object defines it.
* Fix typos (GH-334)Kian Meng, Ang2022-01-021-1/+1
|
* Add a test to get at least minimal coverage for the lxml.html.builder module.Stefan Behnel2021-12-131-0/+8
|
* Prepare release of lxml 4.7.1.Stefan Behnel2021-12-131-1/+1
|
* Prepare release of lxml 4.7.0.lxml-4.7.0Stefan Behnel2021-12-121-1/+1
|
* Merge branch 'lxml-4.6'Stefan Behnel2021-12-121-1/+6
|\
| * Fix a test in Py2.lxml-4.6.5lxml-4.6Stefan Behnel2021-12-121-1/+6
| |
* | Merge branch 'lxml-4.6'Stefan Behnel2021-12-122-12/+147
|\ \ | |/
| * Prepare release of 4.6.5.Stefan Behnel2021-12-121-1/+1
| |
| * Cleaner: cover some more cases where scripts could sneak through in ↵Stefan Behnel2021-12-112-12/+73
| | | | | | | | specially crafted style content.
| * Fix condition in test decorator.Stefan Behnel2021-12-101-1/+1
| |
| * Exclude a test when using the macOS system libraries because it fails with ↵Stefan Behnel2021-12-103-3/+12
| | | | | | | | libxml2 2.9.4.
| * Cleaner: Remove SVG image data URLs since they can embed script content.Stefan Behnel2021-11-112-8/+60
| | | | | | | | Reported as GHSL-2021-1038
| * Cleaner: Prevent "@import" from re-occurring in the CSS after replacements, ↵Stefan Behnel2021-11-112-0/+22
| | | | | | | | | | | | e.g. "@@importimport". Reported as GHSL-2021-1037
| * Prepare release of 4.6.4.Stefan Behnel2021-10-151-1/+1
| |
* | Fix condition in test decorator.Stefan Behnel2021-12-101-1/+1
| |
* | Exclude a test when using the macOS system libraries because it fails with ↵Stefan Behnel2021-12-103-3/+12
| | | | | | | | libxml2 2.9.4.
* | Add test for Python3 regression in C14N2 serialization (GH-332)khillman2021-11-211-0/+39
| | | | | | | | | | Details in https://mail.python.org/archives/list/lxml@python.org/thread/6ZFBHFOVHOS5GFDOAMPCT6HM5HZPWQ4Q/ Fixed in https://github.com/lxml/lxml/commit/8a9579c32782f3d59b73bcf3e7d2fb3b52b80956
* | Make sure the namespace mapping stack in C14NWriterTarget contains only ↵Stefan Behnel2021-11-192-1/+16
| | | | | | | | | | | | | | Unicode strings, not bytes. See https://mail.python.org/archives/list/lxml@python.org/thread/6ZFBHFOVHOS5GFDOAMPCT6HM5HZPWQ4Q/ See https://github.com/lxml/lxml/pull/332