d('option[value=1]') fails #6

Open
gawel opened this Issue Nov 28, 2012 · 5 comments

Projects

None yet

3 participants

@gawel
Owner
gawel commented Nov 28, 2012

illume created an issue 2012-06-22

This works:

>>> d=pyquery.pyquery.PyQuery("<option value='1'>")
>>> d('option[value="1"]')
[<option>]

This doesn't work, but should (it works in jquery):

>>> d=pyquery.pyquery.PyQuery("<option value='1'>")
>>> d('option[value=1]')
... ERROR...
@diox diox referenced this issue in mozilla/zamboni Sep 13, 2013
Merged

Bump some requirements again (bug 846349) #1135

@yodalee
yodalee commented Aug 29, 2014

This problem is happened in cssselect, I think this is not pyquery's fault.

@yodalee yodalee referenced this issue in scrapy/cssselect Sep 1, 2014
Closed

cssselect didn't handle value in integer #44

@yodalee
yodalee commented Sep 1, 2014

As I reported to cssselect scrapy/cssselect#44, it said that this is an spec issue, maybe just close this as not a good way to use pyquery?

@gawel
Owner
gawel commented Sep 1, 2014

+1. Maybe just add a comment about that in the doc. pseudo classes are not really tested/documented

@yodalee
yodalee commented Sep 1, 2014

Well, I'm not sure where the comment should be OAO

@SimonSapin

The comment could be something like: In attribute selectors, the value needs to be quoted if it is not a valid CSS identifier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment