firstNode problems



I'm having some problems making the following work in both Internet
Explorer and Firefox:

http://www.frostjedi.com/terra/scripts/demo/childNodes.html

What it should do (and indeed, what it does do, in Internet Explorer)
is show a gray box. In Firefox, however, it shows a black box.

To explain the commented out code... I've observed that using the
childNode at index 1 does the samething that in Firefox that both
firstChild and the childNode at index 0 do in Internet Explorer. As
such, the above webpage can be easily made to work in Firefox, but once
done, it won't work in Internet Explorer, and vice versa. I'd like to
make it work in both browsers. Without giving the img element it's own
id.

Any ideas as to how I can do this would be appreciated. Thanks!

.



Relevant Pages

  • Re: firstNode problems
    ... > What it should do (and indeed, what it does do, in Internet Explorer) ... In Firefox, however, it shows a black box. ... handles these spaces as firstChild, ...
    (comp.lang.javascript)
  • Re: Install Internet Explorer 7 now
    ... Andy you should be able to call JUNO from Firefox without Juno's software. ... I have to use "Explorer" to get on the internet, ... that makes a computer on the internet vulnerable to mischief.... ... But that you did make that other posting and some of your ...
    (soc.retirement)
  • Internet Explorer vs. Firefox
    ... In several instances I was advised to switch from Microsoft's Internet ... Explorer to Mozella's "Firefox". ... I have tried Firefox and Mozella both, but without uninstalling my IE 5.5. ... There were minor problems with both and I wound up uninstalling them again. ...
    (microsoft.public.security)
  • Re: IE Cant Connect
    ... I have just made Firefox my default browser but if I wanted to make ... Explorer my default browser how do I go about this. ... Under Internet ...
    (microsoft.public.windowsxp.general)
  • Re: Pop ups
    ... Popups and Home Page Hijacks come in several flavors.. ... Google Toolbar advice section for these.) ... Empty your Temporary Internet Files and shrink the size it stores to about ... - Open ONE copy of Internet Explorer. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)