summaryrefslogtreecommitdiff
path: root/src/lxml/html
Commit message (Collapse)AuthorAgeFilesLines
...
* | | minor code reformattingStefan Behnel2015-06-051-5/+9
| | |
* | | unittest check beautifulsoup/bs4 import properlymozbugbox2015-06-061-5/+14
| | |
* | | bs4: replace exception with hasattr on output_readymozbugbox2015-06-051-2/+2
| | |
* | | Merge branch 'master' into port-beautifulsoup-v4mozbugbox2015-06-051-9/+8
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: src/lxml/html/soupparser.py
| * | | prefer BeautifulSoup 4 over version 3 in soupparser.pyStefan Behnel2015-06-051-5/+9
| | | |
| * | | support for bs4.BeautifulSouplosintikfos2015-06-041-4/+6
| | |/ | |/| | | | Changes to allow soapparser to attempt import from both old version of BeautifulSoup or from the new bs4.BeautifulSoup depending on current platform installation version.
* | | BeautifulSoup 4: handle Doctype and Declarationmozbugbox2015-06-052-13/+26
| | | | | | | | | | | | | | | bs4 can use lxml or html5lib to parse html content. Force bs4 builtin html parser when parse html with soupparser.
* | | Port soupparser to bs4mozbugbox2015-06-051-7/+21
|/ /
* | minor fixes in lxml.html.Classes implementationStefan Behnel2015-02-181-2/+2
| |
* | fix doctest in Py3Stefan Behnel2015-02-181-2/+2
| |
* | modernise property usage in lxml.html codeStefan Behnel2015-02-181-103/+140
| |
* | implement a set-like interface for the HTML 'class' attributeStefan Behnel2015-02-182-3/+189
| |
* | keep two blank lines between module level definitions (pep8)Stefan Behnel2015-02-181-5/+53
| |
* | refactor new code in soupparser, extend testsStefan Behnel2015-02-162-57/+69
| |
* | Make soupparser properly handle everything outside the root tag (doctypeOlli Pottonen2015-02-162-30/+186
| | | | | | | | | | | | declaration, comments, processing instructions.) See https://bugs.launchpad.net/lxml/+bug/1341964.
* | merge lxml-3.4 into masterStefan Behnel2015-02-082-7/+20
|\ \
| * | LP#1419354: fix meta-redirect URL parsing when preceded by whitespaceStefan Behnel2015-02-082-7/+20
| | |
| * | fix LP#1369362: do not try to remove pseudo-attributes from processing ↵Stefan Behnel2014-12-141-2/+2
| | | | | | | | | | | | | | | | | | | | | instructions in HTML cleaner --HG-- extra : transplant_source : %FA%01c%AF%5E%13%95%25%1E%01%19%ADA%C6%2A%5D%12%C4n%5E
* | | enable "absolute_import" future switch to simplify and speed up importsStefan Behnel2014-12-171-0/+2
| | |
* | | Convert lxml imports to relativemasklinn2014-12-161-3/+3
| | |
* | | Remove pre-2.6 compatibility, move imports aroundmasklinn2014-12-161-21/+10
| |/ |/|
* | fix LP#1369362: do not try to remove pseudo-attributes from processing ↵Stefan Behnel2014-12-141-2/+2
|/ | | | instructions in HTML cleaner
* clarify docs: lxml.html.fragment_fromstring(create_parent=True) allows ↵Stefan Behnel2014-12-061-4/+6
| | | | multiple elements as parse result
* lxml.html.document_fromstring ensure_head_bodyjab2014-09-042-1/+22
| | | | | | | | | | | | | | | | | | When using lxml.html.document_fromstring to process html outside your control, you can't be sure it will have a head element or body element. Allowing document_fromstring to accept an ensure_head_body option saves you from having to write code like: doc = document_fromstring(html) try: doc.head except IndexError: doc.insert(0, Element('head')) # now we can safely reference doc.head You can instead just write: doc = document_fromstring(html, ensure_head_body=True)
* refactor tag processing code in iterlinks()Stefan Behnel2014-08-231-22/+22
|
* include links in meta refresh tags in iterlinksjab2014-08-222-0/+21
|
* simplify CSS link parsing code in lxml.htmlStefan Behnel2014-04-251-6/+5
|
* simplify regex usage in lxml.htmlStefan Behnel2014-04-251-5/+5
|
* strip control characters before looking for evil text content in CleanerStefan Behnel2014-04-172-5/+13
|
* fix HTML wrapping for bytes strings in Py3Stefan Behnel2014-03-161-1/+3
| | | | | --HG-- extra : transplant_source : %FA%A2p%CD%F9b%DD%AC%01%5E%CAt1%14%9C%97%C12b%5E
* replace outdated references to encoding=unicode in the docs by ↵Stefan Behnel2014-02-261-9/+10
| | | | encoding="unicode"
* clean up test module (mostly formatting)Stefan Behnel2014-02-211-2/+16
|
* fix typo in commentStefan Behnel2014-02-211-1/+1
|
* add testStefan Behnel2014-02-201-1/+11
|
* remove redundant assignmentStefan Behnel2014-02-201-1/+0
|
* be more specific about element iteration in lxml.htmlStefan Behnel2014-02-201-2/+2
|
* minor code simplificationStefan Behnel2014-02-201-4/+3
|
* more faking of NamedTemporaryFile(delete=False) in Py2.[45]Stefan Behnel2014-02-191-1/+12
|
* clean up test changesStefan Behnel2014-02-191-8/+12
|
* python 3 fixesGabi Davar2014-02-161-3/+6
| | | | | --HG-- extra : rebase_source : 7bee297054a17cee778109cd465625870e2af8eb
* fix tests for win32 - local paths are NOT URLsGabi Davar2014-02-161-6/+25
| | | | | --HG-- extra : rebase_source : 48a48c732d63f466b845af1ebf6e27091405fc16
* win32 test fixStefan Behnel2014-01-231-1/+2
|
* prevent 'abc' from being considered a drive letterStefan Behnel2014-01-231-1/+3
|
* fix URL detection heuristic in html5parser under win32Stefan Behnel2014-01-201-1/+12
|
* disable doctest that fails in Py2.6-Stefan Behnel2013-11-151-15/+16
|
* add 'handle_failures' option to make_links_absolute() to allow graceful ↵Stefan Behnel2013-11-152-13/+57
| | | | handling of broken URLs
* minor code cleanupStefan Behnel2013-11-121-4/+5
|
* lxml.html.formfill: Fix textarea form filling.Jonas Baumann2013-10-202-1/+12
| | | | | The textarea used to be cleared before the new content was set, which removed the name attribute.
* minor test extensionStefan Behnel2013-08-011-1/+5
|
* use Unicode whitespace in regexStefan Behnel2013-08-011-1/+1
|