[Project_owners] Re: Mozilla Firefox vs Mozilla

HJ bugus at universum.org
Tue Jan 11 10:47:56 EST 2005


Neil wrote:
> HJ wrote:
> 
>> Hi guys,
>>
>> Why is this:
>>
>> in Mozilla Firefox
>> alert(gBrowser.browsers);
>> displays: [object HTMLCollection]
>>
>> in Mozilla
>> alert(gBrowser.browsers);
>> displays: [object NodeList]

Ah, this 'error' seems to be caused when you extend a binding instead of 
replacing it completely.

>> And because of this, gBrowser.browsers[0].webNavigation in Mozilla 
>> fails if I use something like this:
>>
>> <property name="browsers" readonly="true" onget="return 
>> this.mPanelContainer.getElementsByTagName('browser');"/>
> 
> 
> Why would you want to do that? What's wrong with Mozilla's "return 
> this.mPanelContainer.childNodes;"?

Because Mozila Firefox uses something like:

<xul:tabpanels ...
   <xul:vbox ...
     <xul:browsermessage ...
       <xul:browser ...
     <xul:browsermessage ...
   </xul:vbox>
</xul:tabpanels>

/HJ


More information about the Project_owners mailing list