Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Avoid using the deprecated "imp" module.HEADmaster | Stefan Behnel | 2023-05-11 | 1 | -1/+2 |
| | | | | Closes https://bugs.launchpad.net/lxml/+bug/2018137 | ||||
* | Avoid using the deprecated "imp" module. | Stefan Behnel | 2023-05-11 | 1 | -2/+4 |
| | | | | Closes https://bugs.launchpad.net/lxml/+bug/2018137 | ||||
* | Set master version to 5.0.0a0 to diverge from 4.9.x. | Stefan Behnel | 2023-03-26 | 1 | -1/+1 |
| | |||||
* | Prevent lxml.objectify from accepting non-decimal digit characters as ↵ | Stefan Behnel | 2023-03-03 | 2 | -1/+2 |
| | | | | integers/numbers and from representing them as IntElement. | ||||
* | Use "noexcept" modifiers for callback functions and fix some exception value ↵ | Stefan Behnel | 2022-12-23 | 9 | -50/+50 |
| | | | | declaration bugs found by Cython 3.0. | ||||
* | Replace outdated URL in error message. | Stefan Behnel | 2022-12-22 | 1 | -1/+1 |
| | |||||
* | Simplify code. | Stefan Behnel | 2022-12-22 | 1 | -2/+2 |
| | |||||
* | Call super() from CSSSelector constructor to help with used side inheritance. | Stefan Behnel | 2022-12-22 | 1 | -1/+1 |
| | |||||
* | Use generic 'nogil' block markers in pxd declarations where possible, except ↵ | Stefan Behnel | 2022-12-15 | 12 | -297/+297 |
| | | | | for a few callback declarations that may be used for regular GIL functions. | ||||
* | Prepare release of 4.9.2. | Stefan Behnel | 2022-12-06 | 1 | -1/+1 |
| | |||||
* | Improve the docstring about the "profile_run" XSLT() argument. | Stefan Behnel | 2022-08-13 | 1 | -1/+2 |
| | |||||
* | Work around libxml2 bug in affected versions that failed to reset the ↵ | Stefan Behnel | 2022-07-19 | 3 | -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 Behnel | 2022-07-15 | 2 | -1/+16 |
| | |||||
* | Prevent parse failure in new test from leaking into later test runs.lxml-4.9.1 | Stefan Behnel | 2022-07-01 | 1 | -2/+4 |
| | |||||
* | Prepare release of lxml 4.9.1. | Stefan Behnel | 2022-07-01 | 1 | -1/+1 |
| | |||||
* | Fix a crash when incorrect parser input occurs together with usages of ↵ | Stefan Behnel | 2022-07-01 | 3 | -8/+30 |
| | | | | iterwalk() on trees generated by the same parser. | ||||
* | Remove debug print from test. | Stefan Behnel | 2022-05-31 | 1 | -2/+0 |
| | |||||
* | Prepare release of 4.9.0. | Stefan Behnel | 2022-05-30 | 1 | -1/+1 |
| | |||||
* | Add a test for https://bugs.launchpad.net/lxml/+bug/1965070 leaving out the ↵ | Stefan Behnel | 2022-05-30 | 1 | -0/+25 |
| | | | | actual failure case. | ||||
* | #undefine "PyUnicode_IS_READY" and friends in Py3.12 since CPython still ↵ | Stefan Behnel | 2022-05-17 | 2 | -8/+6 |
| | | | | defines them as dummies. | ||||
* | Adapt to PyUnicode wstr removal in Py3.12. | Stefan Behnel | 2022-05-17 | 1 | -0/+17 |
| | | | | See https://peps.python.org/pep-0623/ | ||||
* | Add new error constant from libxml2 2.9.14. | Stefan Behnel | 2022-05-17 | 2 | -0/+2 |
| | |||||
* | Fix inheritance order of mixin classes in lxml.html (GH-340) | xmo-odoo | 2022-05-17 | 2 | -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-odoo | 2022-03-13 | 1 | -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 Behnel | 2022-03-08 | 1 | -0/+2 |
| | |||||
* | Update outdated comment. | Stefan Behnel | 2022-02-22 | 1 | -1/+1 |
| | |||||
* | Clean up some docstrings. | Stefan Behnel | 2022-02-22 | 1 | -4/+5 |
| | |||||
* | Prepare release of 4.8.0.lxml-4.8.0 | Stefan Behnel | 2022-02-17 | 1 | -1/+1 |
| | |||||
* | Modernise some code in the ElementMaker implementation. | Stefan Behnel | 2022-02-14 | 1 | -21/+11 |
| | |||||
* | Allow QName as tag value in ElementMaker, not just strings. | Stefan Behnel | 2022-02-14 | 3 | -2/+24 |
| | |||||
* | Use expected XSD spellings for xsi:double infinity and NaN (GH-338) | Tobias Deiminger | 2022-02-13 | 2 | -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 Janssen | 2022-02-12 | 13 | -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, Ang | 2022-01-02 | 1 | -1/+1 |
| | |||||
* | Add a test to get at least minimal coverage for the lxml.html.builder module. | Stefan Behnel | 2021-12-13 | 1 | -0/+8 |
| | |||||
* | Prepare release of lxml 4.7.1. | Stefan Behnel | 2021-12-13 | 1 | -1/+1 |
| | |||||
* | Prepare release of lxml 4.7.0.lxml-4.7.0 | Stefan Behnel | 2021-12-12 | 1 | -1/+1 |
| | |||||
* | Merge branch 'lxml-4.6' | Stefan Behnel | 2021-12-12 | 1 | -1/+6 |
|\ | |||||
| * | Fix a test in Py2.lxml-4.6.5lxml-4.6 | Stefan Behnel | 2021-12-12 | 1 | -1/+6 |
| | | |||||
* | | Merge branch 'lxml-4.6' | Stefan Behnel | 2021-12-12 | 2 | -12/+147 |
|\ \ | |/ | |||||
| * | Prepare release of 4.6.5. | Stefan Behnel | 2021-12-12 | 1 | -1/+1 |
| | | |||||
| * | Cleaner: cover some more cases where scripts could sneak through in ↵ | Stefan Behnel | 2021-12-11 | 2 | -12/+73 |
| | | | | | | | | specially crafted style content. | ||||
| * | Fix condition in test decorator. | Stefan Behnel | 2021-12-10 | 1 | -1/+1 |
| | | |||||
| * | Exclude a test when using the macOS system libraries because it fails with ↵ | Stefan Behnel | 2021-12-10 | 3 | -3/+12 |
| | | | | | | | | libxml2 2.9.4. | ||||
| * | Cleaner: Remove SVG image data URLs since they can embed script content. | Stefan Behnel | 2021-11-11 | 2 | -8/+60 |
| | | | | | | | | Reported as GHSL-2021-1038 | ||||
| * | Cleaner: Prevent "@import" from re-occurring in the CSS after replacements, ↵ | Stefan Behnel | 2021-11-11 | 2 | -0/+22 |
| | | | | | | | | | | | | e.g. "@@importimport". Reported as GHSL-2021-1037 | ||||
| * | Prepare release of 4.6.4. | Stefan Behnel | 2021-10-15 | 1 | -1/+1 |
| | | |||||
* | | Fix condition in test decorator. | Stefan Behnel | 2021-12-10 | 1 | -1/+1 |
| | | |||||
* | | Exclude a test when using the macOS system libraries because it fails with ↵ | Stefan Behnel | 2021-12-10 | 3 | -3/+12 |
| | | | | | | | | libxml2 2.9.4. | ||||
* | | Add test for Python3 regression in C14N2 serialization (GH-332) | khillman | 2021-11-21 | 1 | -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 Behnel | 2021-11-19 | 2 | -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 |