Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cssselect method #47

Closed
wants to merge 11 commits into from
Closed

Conversation

SimonSapin
Copy link
Contributor

Add a cssselect method to all element. This is a partial fix for #45. It is based on #46 which makes the diff awkward, but only the last commit is relevant. It could be rebased on master (but without the translator part.)

Includes ugly hack to support Python 2.4
translator defaults to 'xml' in _Element and 'html' in HtmlElement
No need to duplicate the tests that are now in cssselect.
Now test_css.py only tests what is specific to lxml.
This is an addition to the API that should be considered separatly
from using the new cssselect.

This reverts commit 7820b8d.
translator defaults to 'xml' in _Element and 'html' in HtmlElement

(Add it back again, but on a separate pull request.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants