I think this may be a bug in Firefox at this point, but I am truly
confused.
I added this code to the reattach function of my panel:
logger.info('reattach: Menu using document of chrome: %s',
Firebug.chrome.window.document.getElementById('fbAdfvTypeMenu'));
var walker = doc.createTreeWalker
(Firebug.chrome.window.document.documentElement,
NodeFilter.SHOW_ELEMENT,
{
acceptNode: function (node)
{
return NodeFilter.FILTER_ACCEPT;
}
}, false);
var node;
while ((node = walker.nextNode()) != null)
{
var id = node.getAttribute('id');
if (id != null && id != '')
{
logger.info('reattach: found element %s', id);
}
}
The document.getElementById returns null, but the tree walker found
the node:
OAdfv info: reattach: found element fbAdfvTypeMenu
Okay who has heard of document.getElementById failing?!
Will have to keep looking but this is quite odd IMO
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---