Penso che puoi risolvere appendendo il nodo link1 direttamente al nodo li, anziché al nodo span, modificando le ultime 5 istruzioni in questo modo:<div><br></div><div><span class="Apple-style-span" style="color: rgb(102, 102, 102); font-family: monospace; font-size: 13px; white-space: nowrap; "><span class="whitespace"> </span><span class="js-localvariable" style="color: black; ">span</span><span class="js-punctuation" style="color: rgb(102, 102, 102); ">.</span><span class="js-property" style="color: black; ">appendChild</span><span class="js-punctuation" style="color: rgb(102, 102, 102); ">(</span><span class="js-variable" style="color: black; ">document</span><span class="js-punctuation" style="color: rgb(102, 102, 102); ">.</span><span class="js-property" style="color: black; ">createTextNode</span><span class="js-punctuation" style="color: rgb(102, 102, 102); ">(</span><span class="js-localvariable" style="color: black; ">data1</span><span class="js-punctuation" style="color: rgb(102, 102, 102); ">)</span><span class="js-punctuation" style="color: rgb(102, 102, 102); ">)</span><span class="js-punctuation" style="color: rgb(102, 102, 102); ">;</span><br>
<span class="whitespace"> </span><span class="js-localvariable" style="color: black; ">li</span><span class="js-punctuation" style="color: rgb(102, 102, 102); ">.</span><span class="js-property" style="color: black; ">appendChild</span><span class="js-punctuation" style="color: rgb(102, 102, 102); ">(</span><span class="js-localvariable" style="color: black; ">span</span><span class="js-punctuation" style="color: rgb(102, 102, 102); ">)</span><br>
<span class="whitespace"> </span><span class="js-localvariable" style="color: black; ">li</span><span class="js-punctuation" style="color: rgb(102, 102, 102); ">.</span><span class="js-variable" style="color: black; ">appendChild</span><span class="js-punctuation" style="color: rgb(102, 102, 102); ">(</span><span class="js-localvariable" style="color: black; ">link1</span><span class="js-punctuation" style="color: rgb(102, 102, 102); ">)</span><br>
<span class="whitespace"> </span><span class="js-localvariable" style="color: black; ">div</span><span class="js-punctuation" style="color: rgb(102, 102, 102); ">.</span><span class="js-variable" style="color: black; ">appendChild</span><span class="js-punctuation" style="color: rgb(102, 102, 102); ">(</span><span class="js-localvariable" style="color: black; ">li</span><span class="js-punctuation" style="color: rgb(102, 102, 102); ">)</span><br>
</span><div><span style="font-family: 'courier new', monospace; "> container.appendChild(div);</span><br><br></div><div>Buon proseguimento,</div><div>Giuliano</div><div><br></div><div><br></div><div><br>
<div class="gmail_quote">Il giorno 14 aprile 2011 22:58, Edoardo Poeta <span dir="ltr"><<a href="mailto:edoardo.poeta@gmail.com">edoardo.poeta@gmail.com</a>></span> ha scritto:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Sono un ignorante crasso di dom e js, ma devo per necessità estrema ricorrere alla Google Feed Api. Recuperato il feed lo devo restituire con questo output per ragioni di css: <span style="font-family:courier new,monospace"><br>
<br><span>mese anno</span><a href="link">Titolo</a></span><br> <br>Ho scritto<br><br><span style="font-family:courier new,monospace">var entry = result.feed.entries[i];</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> var div = document.createElement("div");</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> var link1 = document.createElement('a');</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> var li = document.createElement('li');</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> var span = document.createElement('span');</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> </span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> var data = new Date(entry.publishedDate);</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> var data1 = data.getMonth() + ' ' + data.getFullYear();</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> </span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> </span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> link1.appendChild(document.createTextNode(entry.title));</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> link1.setAttribute('href', entry.link);</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> </span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> span.appendChild(document.createTextNode(data1));</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> span.appendChild(link1)</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> li.appendChild(span)</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> div.appendChild(li)</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> </span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> container.appendChild(div);</span><br>
<br>ottengo ovviamente questo<br><span style="font-family:courier new,monospace"><span xmlns="<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>">2 2011<a href="<a href="http://issuu.com/thinkquarterly/docs/01-data/1" target="_blank">http://issuu.com/thinkquarterly/docs/01-data/1</a>">Think Quarterly - 01 Data</a></span></span><br>
<br>invece vorrei ottenere questo<br><span style="font-family:courier new,monospace"><span xmlns="<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>">2 2011</span><a href="<a href="http://issuu.com/thinkquarterly/docs/01-data/1" target="_blank">http://issuu.com/thinkquarterly/docs/01-data/1</a>">Think Quarterly - 01 Data</a></span><br>
<br>C'è qualche anima pia che mi può aiutare? So che è una cosa banale, ma non ci riesco... e sto perdendoci ore!<br><br>Grazie!<br><font color="#888888"><br>E.<br>
</font><br><br>
--<br>
Mailing list info: <a href="http://lists.linux.it/listinfo/sabazialug" target="_blank">http://lists.linux.it/listinfo/sabazialug</a><br>
<br></blockquote></div><br></div></div>