ok so im using Jsoup to get the link for an image from this piece of code\[code\]<div id="section_1" class="story inview" bgimage="AAA" style="width: 1366px; height: 853.75px; background-image: url(http://Fake.link.comm);" scrollto="0">\[/code\]and the code that i'm using is this \[code\]Document doc = Jsoup.connect(web).get();Element content = doc.getElementById("section_1");Elements elements = doc.getElementsByClass(content.className());for( Element e : elements ) { String attr = e.attr("style"); System.out.println( attr.substring( attr.indexOf("http://"), attr.indexOf(")") ) ); }\[/code\]however it gives me back an out of index error with -1 value after some looking into it i realizedfor some reason the code that the parser reads is this\[code\]<div id="section_1" class="story" bgimage="AAA"> \[/code\]and as such there is no "style" attribute.... can someone tell me why it is behaving like this? many thanks!