jQuery css selectors faulty?

12 views
Skip to first unread message

iWantToKeepAnon

unread,
Mar 13, 2012, 3:01:13 PM3/13/12
to last...@googlegroups.com
Do this:
 cartoon = retrieve "http://www.dilbert.com/" = <html>.......
 image = select "img[src *= '.gif']" from cartoon = []

But:
 image = select "img" from cartoon = [ too big (320 chars) ]

I tried escaped double quotes instead of single quotes, but no results.  But there ARE gifs on that page!

Request: add a 'display' or 'render' function to draw an image.

Ian Clarke

unread,
Mar 13, 2012, 3:40:22 PM3/13/12
to last...@googlegroups.com
LC uses this library internally, which may not implement all of JQuery's selector syntax: http://jsoup.org/cookbook/extracting-data/selector-syntax

That is probably the issue, is there another way you can create a selector to grab the elements you want?

Ian.


--
You received this message because you are subscribed to the LastCalc Group
http://groups.google.com/group/lastcalc?hl=en?hl=en



--
Ian Clarke
Reply all
Reply to author
Forward
0 new messages