jhy / jsoup

jsoup: the Java HTML parser, built for HTML editing, cleaning, scraping, and XSS safety.
https://jsoup.org
MIT License
10.92k stars 2.18k forks source link

"A" tag cannot be found by class match #320

Closed charlyalv closed 11 years ago

charlyalv commented 11 years ago

Im tried to get a match from this page: using the online demo: http://www.express.com/clothing/patch+pocket+faded+denim+jacket/pro/1222057/cat2004

To get this tag: <a class="widget-popup-window iframe" ....

Using this match: .widget-popup-window iframe

But nothing is matched.

Thanks in advance, Carlos

jsalinaspolo commented 11 years ago

You are using 2 class widget-popup-window and iframe. U should select by one of them and will works. Also could use a selector multiple .widget-popup-window.iframe (See that iframe class have the ".")

jhy commented 11 years ago

Per above