W3C home > Mailing lists > Public > public-rdfa-wg@w3.org > February 2011

Re: Golly gosh!

From: Niklas Lindström <lindstream@gmail.com>
Date: Wed, 2 Feb 2011 10:31:49 +0100
Message-ID: <AANLkTikkQKkdoT5zK9B=DxNTJt18QkaoAvb2=WeFV9iq@mail.gmail.com>
To: Ivan Herman <ivan@w3.org>
Cc: Toby Inkster <tai@g5n.co.uk>, public-rdfa-wg@w3.org
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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:19:50 UTC