The following piece of code works fine in Firefox 2, but in betas and
latest nightly builds of Firefox 3 getAnonymousElementByAttribute()
returns undefined. Does anything related to this matter changed in
Firefox 3 or are there any known related bugs?
<binding id="autocomplete-menulist" extends="chrome://global/content/
bindings/menulist.xml#menulist-editable">
<content sizetopopup="pref">
<xul:textbox type="autocomplete" flex="1" anonid="textbox"
timeout="250" xbl:inherits="disableautocomplete,src,width,minwidth"/>
</content>
<implementation>
<field name="mTextBox">null</field>
<property name="textBox">
<getter><![CDATA[
if(!this.mTextBox) {
this.mTextBox =
document.getAnonymousElementByAttribute(this, "anonid", "textbox");
}
return this.mTextBox;
]]></getter>
</property>
.....................
</implementation>
</binding>
Thanks,
Oleg Eterevsky.