Re: Golly gosh!

Hi,

it doesn't work in Firefox; but it does if you change innerText
(non-standard) to textContent. So:

  var spans = document.getElementsByTagName('span');
  spans[0].textContent = spans[0].getAttribute("title");

works. (I used 'document' instead of 'document.body' too, although both work.)

(Like Ivan though, I'm not sure which point is being alluded to. ;) )

Best regards,
Niklas



On Wed, Feb 2, 2011 at 10:06 AM, Ivan Herman <ivan@w3.org> wrote:
> ??? He is usually right, but I would like to know on what this time:-)
>
> Ivan
>
> On Feb 2, 2011, at 07:37 , Toby Inkster wrote:
>
>> Manu was right!
>>
>> http://buzzword.org.uk/2011/test-empty-span.html
>>
>> Try in Firefox versus Opera. (I tested 3.6.2 and 11.0 respectively.)
>>
>> --
>> Toby A Inkster
>> <mailto:mail@tobyinkster.co.uk>
>> <http://tobyinkster.co.uk>
>>
>>
>
>
> ----
> Ivan Herman, W3C Semantic Web Activity Lead
> Home: http://www.w3.org/People/Ivan/
> mobile: +31-641044153
> PGP Key: http://www.ivan-herman.net/pgpkey.html
> FOAF: http://www.ivan-herman.net/foaf.rdf
>
>
>
>
>
>

Received on Wednesday, 2 February 2011 09:32:45 UTC