Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

getAnonymousElementByAttribute() in Firefox 3

42 views
Skip to first unread message

ol...@google.com

unread,
Apr 8, 2008, 10:28:47 AM4/8/08
to
Hi!

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.

ol...@google.com

unread,
Apr 8, 2008, 11:30:06 AM4/8/08
to
Sorry, it was my mistake, the problem was elsewhere.
0 new messages