> Geoffrey Summerhayes a crit :
> > On May 15, 11:31 am, libsfan01 <mcyi2@googlemail.com> wrote:
> >> in firefox the following alert does not get created from my function:
> >> ch = container1.childNodes(0).id;
> >> alert(ch)
> >> can anyone tell why this might not work in firefox but does in safari?
> Why it could work in Safary I don't know,
> but why it doesn't work in FF :
> because the first chidNode in FF is an invisible text node (without id)
> and anyway ... it is :
> ch = container1.childNodes[0];
Actually the absence of id wouldn't cause a problem for this, > > Are you getting an error in the console?
> He can also have a look in Firefox's DOM inspector ( #text )
Depends a lot on what container1 is, a text node isn't always