Dec. 14, 2008
9:15 p.m.
Hi, Olivier Lauzanne wrote:
I have implemented some of the classes that are present in jQuery but not in the css standard. Extending the classes seems like the right way to do it. You can check it out here.
http://www.bitbucket.org/olauzanne/pyquery/src/tip/pyquery/cssselectpatch.py
cssselect should remain standard compliant but I could make a patch so that using the jQuery pseudo classes is an option of the CSSSelector class. I don't have a strong opinion about doing it or not doing it. What do you think ?
Would it make sense to make this a separate module like "jqselect" (which would inherit most of the API of cssselect) instead of patching into cssselect itself? Stefan