Thanks guys!

So, should I write like this?
var name   = node.getElementsByTagName('newslink')
[0].firstChild.Text;

or:

var name   = node.getElementsByTagName('newslink')
[0].firstChild.textContent;

?

They just return 'undefined' for me.

thnkx

/Johan

On 15 Maj, 12:17, "Gareth Evans" <[EMAIL PROTECTED]> wrote:
> Oops my bad. I didn't google, of course.. I just have found that when coding
> for IE (I mostly do intranet apps where firefox isn't standard, sadly) that
> node.value doesn't always contain what you expect and it's better to use the
> text property. The equiv to innerHTML, unparsed would be .xml on a node,
> wouldn't it?
>
> On 5/15/07, RobG <[EMAIL PROTECTED]> wrote:
>
>
>
> > On May 15, 7:20 pm, "Gareth Evans" <[EMAIL PROTECTED]> wrote:
> > > try innerText, the dom implementation could be different for nodeValue
>
> > Firefox doesn't support IE's proprietary innerText property, it
> > supports the W3C equivalent: textContent.  Neither are equivalent to
> > innerHTML.
>
> > --
> > Rob


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to