I am using scrapy to extract data from web. I am trying to extract the text of anchor tags under a span tag as shown below:

```
<span>.....</span>
<span id = "size_selection_list">
    <a>....</a>
    <a>....</a>
    .
    .
    .
    <a>
</span>

```

I am using the following xpath logic:

```
t = sel.xpath('//div[starts-with(@id,"size_selection_container")]/span[2]')
for x in t.xpath('.//a'):
....

```

The problem is that the span element is reached but the `<a>` tags are not iterated. What is the mistake here? Also the `<a>` has an href which has javascript. Is this the reason for the problem?