| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | clean up imports | Stefan Behnel | 2017-08-13 | 1 | -1/+3 | |
| | | ||||||
| * | LP#1567526: Make soupparser sort-of handle empty and plain text input ↵ | Stefan Behnel | 2017-08-13 | 2 | -3/+17 | |
| | | | | | instead of raising a TypeError. | |||||
| * | Update docstrings to reflect the new behaviour of the "guess_charset" option ↵ | Stefan Behnel | 2017-08-13 | 1 | -9/+20 | |
| | | | | | in html5parser. | |||||
| * | Adapt defaults for "guess_charset" option in the remaining parse functions. | Stefan Behnel | 2017-08-13 | 1 | -2/+2 | |
| | | ||||||
| * | Adapt defaults for "guess_charset" option when parsing from files and URLs ↵ | Stefan Behnel | 2017-08-13 | 1 | -2/+22 | |
| | | | | | to avoid passing "useChardet" when it's likely to fail. | |||||
| * | Back out GH issue #232 again as a retry should not be triggered internally ↵ | Stefan Behnel | 2017-08-13 | 1 | -36/+6 | |
| | | | | | by lxml. Users should do it explicitly if they think they need it. | |||||
| * | Fix tests after making "useChardet" handling smarter. | Stefan Behnel | 2017-08-12 | 1 | -5/+16 | |
| | | ||||||
| * | Only pass "useChardet" option into html5parser by default if the input is a ↵ | Stefan Behnel | 2017-08-12 | 1 | -6/+18 | |
| | | | | | byte string. Should help with LP#1654544. | |||||
| * | Make class Py2 compatible. | Stefan Behnel | 2017-08-12 | 1 | -1/+1 | |
| | | ||||||
| * | Merge pull request #232 from ondergetekende/1654544 | scoder | 2017-08-12 | 1 | -5/+38 | |
| |\ | | | | | Fix LP1654544 | |||||
| | * | Make sure the html5lib tests are included in CI | Koert van der Veer | 2017-03-20 | 1 | -20/+22 | |
| | | | ||||||
| | * | Build a retry mechanism around html5lib's unpredictable useChardet support | Koert van der Veer | 2017-03-16 | 1 | -2/+33 | |
| | | | | | | | | | Closes LP1654544 | |||||
| * | | soupparse: add test case for double-hyphen | ha shao | 2017-07-29 | 1 | -0/+11 | |
| | | | ||||||
| * | | soupparser: Use html.HtmlComment() to create commend | ha shao | 2017-07-29 | 1 | -3/+1 | |
| | | | ||||||
| * | | Soupparser: Fix "No parser was explicitly specified" warning | ha shao | 2017-07-28 | 1 | -1/+1 | |
| | | | | | | | | | | | Seems that beautifulsoup won't handle using list as `features` properly. | |||||
| * | | Soupparser: Fix bug with double hyphen (--) in comment element | ha shao | 2017-07-28 | 1 | -0/+2 | |
| | | | ||||||
| * | | Fix a typo: referrs -> refers | Felix Yan | 2017-06-12 | 1 | -1/+1 | |
| | | | ||||||
| * | | Remove unused imports. | Chris Gavin | 2017-04-24 | 3 | -4/+4 | |
| | | | ||||||
| * | | Python 3.6 invalid escape sequence deprecation fixes | Ville Skyttä | 2017-03-19 | 1 | -1/+1 | |
| | | | | | | | | | https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior | |||||
| * | | merge lxml-3.7 branch into master | Stefan Behnel | 2017-03-18 | 1 | -4/+4 | |
| |\ \ | ||||||
| | * | | improve type check and comment | Stefan Behnel | 2017-03-18 | 1 | -4/+4 | |
| | | | | ||||||
| | * | | Perform full-document detection on decoded bytes. | Koert van der Veer | 2017-03-16 | 2 | -1/+14 | |
| | | | | | | | | | | | | | Closes #1673355 | |||||
| * | | | Merge pull request #233 from ondergetekende/1673355 | scoder | 2017-03-18 | 2 | -1/+14 | |
| |\ \ \ | | | | | | | | | Fix LP1673355 | |||||
| | * | | | Perform full-document detection on decoded bytes. | Koert van der Veer | 2017-03-16 | 2 | -1/+14 | |
| | | |/ | |/| | | | | | | | Closes #1673355 | |||||
| * | | | fix spelling mistakes originally found by scop in GH#230 | Stefan Behnel | 2017-03-18 | 1 | -1/+1 | |
| | | | | ||||||
| * | | | Merge pull request #235 from jwilk/cruft | scoder | 2017-03-18 | 1 | -6/+0 | |
| |\ \ \ | | | | | | | | | remove obsolete compat code | |||||
| | * | | | remove conditional imports of the set module | Jakub Wilk | 2017-03-17 | 1 | -6/+0 | |
| | |/ / | | | | | | | | | | These were needed for Python 2.3, which is no longer supported. | |||||
| * | | | allow hyphens in mailto: hosts | Jakub Wilk | 2017-03-16 | 1 | -1/+1 | |
| |/ / | ||||||
| * | | add tests for bug #1665241 | Ashish Kulkarni | 2017-02-16 | 1 | -1/+25 | |
| | | | ||||||
| * | | fix html.SelectElement stripping whitespace from <option> values | Ashish Kulkarni | 2017-02-16 | 1 | -19/+6 | |
| | | | | | | | | | | | | | This is a fix for bug #1665241, as the original fix for #399249 in 0b14af50fdc878199f8a3be3053eef42d3e9851f should not apply to option values, which are supposed to be passed through as-is. | |||||
| * | | Fix POST form submission for Python 3 | Jakub Wilk | 2017-02-08 | 1 | -0/+2 | |
| |/ | | | | | | | | | | | | | | | | | | | | | | | In Python 3, urlencode() returns Unicode string; but urlopen() wants only bytes in data, so it need to be encoded first. Fixes: >>> form = lxml.html.fromstring('<form method="POST">', base_url='http://localhost') >>> lxml.html.submit_form(form) Traceback (most recent call last): File "<stdin>", line 1, in <module> File ".../lxml/html/__init__.py", line 1119, in submit_form return open_http(form.method, url, values) File ".../lxml/html/__init__.py", line 1140, in open_http_urllib return urlopen(url, data) File ".../urllib/request.py", line 163, in urlopen return opener.open(url, data, timeout) File ".../urllib/request.py", line 464, in open req = meth(req) File ".../urllib/request.py", line 1183, in do_request_ raise TypeError(msg) TypeError: POST data should be bytes or an iterable of bytes. It cannot be of type str. | |||||
| * | Merge pull request #197 from creitiv/ignore-disabled-inputs | scoder | 2016-08-20 | 2 | -2/+4 | |
| |\ | | | | | Ignore disabled form inputs | |||||
| | * | ignore disabled form inputs | Kristian Klemon | 2016-07-26 | 2 | -2/+4 | |
| | | | ||||||
| * | | adapt docs to actual behaviour | Stefan Behnel | 2016-08-13 | 1 | -7/+6 | |
| | | | ||||||
| * | | allow el.set("attr") in HTML trees without having to specify an explicit ↵ | Stefan Behnel | 2016-07-29 | 1 | -1/+11 | |
| |/ | | | | None value | |||||
| * | make the "inline_style" option in Cleaner default to (but independent of) ↵ | Stefan Behnel | 2016-07-24 | 1 | -5/+9 | |
| | | | | | the "style" option | |||||
| * | Merge pull request #180 from chripede/patch-2 | scoder | 2016-07-24 | 2 | -3/+27 | |
| |\ | | | | | Add inline_style option | |||||
| | * | Fix tests for inline_style | Christian Pedersen | 2015-11-20 | 1 | -2/+21 | |
| | | | ||||||
| | * | Add inline_style option | Christian Pedersen | 2015-11-19 | 1 | -1/+6 | |
| | | | | | | | | | Currently the style option will remove both style tags and attributes. This change makes each an option, just like scripts and javascript. | |||||
| * | | Exclude `file` field `value` from `FormElement.form_values`. | Tomas Divis | 2016-07-20 | 2 | -1/+3 | |
| | | | | | | | | | Similar to `submit`, `image` and `reset`, browsers don't send `file` field values in the POST when form is submitted. `FormElement.form_values` method already correctly excluded `submit`, `image` and `reset` fields, now it also excludes the `file` fields. | |||||
| * | | Fix unichr bug on Python3 | Duncan Morris | 2016-02-22 | 1 | -0/+7 | |
| |/ | ||||||
| * | Add a cssselect method to all elements, not just HtmlElement | Simon Sapin | 2012-04-20 | 1 | -1/+2 | |
| | | | | | | | translator defaults to 'xml' in _Element and 'html' in HtmlElement (Add it back again, but on a separate pull request.) | |||||
| * | Merge pull request #162 from hbrunn/master-allow-image-dataurls | scoder | 2015-09-04 | 1 | -1/+8 | |
| |\ | | | | | [IMP] allow dataurls if they point to images | |||||
| | * | [IMP] allow dataurls if they point to images | Holger Brunn | 2015-03-04 | 1 | -1/+8 | |
| | | | | | | | | | fixes #145 | |||||
| * | | Merge pull request #153 from masklinn/simplify-SetMixin | scoder | 2015-09-04 | 1 | -79/+16 | |
| |\ \ | | | | | | | Simplify SetMixin by rebuilding it on top of MutableSet | |||||
| | * | | Simplify SetMixin by rebuilding it on top of MutableSet | masklinn | 2014-12-17 | 1 | -79/+16 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SetMixin can't be removed entirely as: * MutableSet annoyingly does not include the method form of the operators on purpose: http://bugs.python.org/issue22089 * SetMixin provides a ``copy`` which was only used internally (?) but may be used by third parties Furthermore, because MutableSet and SetMixin differ in their abstract methods (MutableSet uses discard rather than remove, and __len__ and __contains__ are abstract) this would require significant edition of subclasses. | |||||
| * | | | avoid double recursion in BS tree conversion | Stefan Behnel | 2015-06-05 | 1 | -0/+11 | |
| | | | | ||||||
| * | | | use node type based dispatch mechanism for BS tree conversion instead of ↵ | Stefan Behnel | 2015-06-05 | 1 | -24/+63 | |
| | | | | | | | | | | | | | sequential type tests | |||||
| * | | | clean up BS4 changes | Stefan Behnel | 2015-06-05 | 1 | -17/+19 | |
| | | | | ||||||
| * | | | simplify import check in test and keep original import exception on failures | Stefan Behnel | 2015-06-05 | 1 | -13/+6 | |
| | | | | ||||||
