[lxml-dev] lxml cssselect
Brandon Low
lostlogic at lostlogicx.com
Wed Jul 15 02:20:20 CEST 2009
root.cssselect('input[type="image"]')
is the syntax you need
--Brandon
On 2009-07-14 (Tue) at 13:11:25 -0700, Mary Lei wrote:
> Can I use cssselect to select a set of input tags
> with image
>
> <input name="etsstop" value="1" src="nph-bgExec_files/top.png"
> type="image">
>
> for img in root.cssselect('input'):
> ...
>
>
> works fine but
> for img in root.cssselect('input type="image"'):
> ...
> sends lxml spinnning.
>
> --
> Mary Lei
>
> Software Testing
> IPAC-NExScl
>
> Rm: KS-233
> MS: 220-6
> Phone: 395-1998
>
> _______________________________________________
> lxml-dev mailing list
> lxml-dev at codespeak.net
> http://codespeak.net/mailman/listinfo/lxml-dev
More information about the lxml-dev
mailing list