[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Re: Bug#30123: dhtml popdowns not working
From:       Peter Kelly <pmk () post ! com>
Date:       2001-08-26 14:52:54
[Download RAW message or body]

David Faure wrote:

<snip>
> 
> I don't see the same thing. We don't go into the if (document.layers) {} case,
> we go in the "else" of that if.
> The strange thing though, is :
>               if ((!document.all) && (co.hasChildNodes)) {
>                       co.innerHTML=content;
>               } else {
>                       alert("co.document.open. co="+co);
>                       alert("co.document.open. co.document="+co.document);
>                       co.document.open("text/html");
>                       co.document.writeln(content);
>                       co.document.close();
>               }
> Now I see what you mean, we should go to the innerHTML bit. But why is the
> test (!document.all) ?? Is that a bug in the script ?
> 
> I'm surprised that there is a test for layers at this point again, since we're in the "else"
> of "if (document.layers)".
> Is it possible that co.hasChildNodes gives a 3rd case ?
> I'm puzzled by this "!" in any case...
> 
> 

Well according to the script (bug or not), we should go into the else 
case. I've added support for the "document" property of elements as 
discussed on IRC. element.document.write() and writeln() basically just 
append to innerHTML, this seems similar in behaviour to IE. The menus 
come up now, however they're still not 100% working yet.

-- 
Peter Kelly
pmk@post.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic