The browser flock is developed starting from Mozilla Gecko code but has many specific features.
Together with many cool features the flock team has added many bugs not present in original Gecko code!
The last I found involves the DOMAttrModified event listener.
The code below works on Firefox 1.5, 2.x and 3.x (thunks) but doesn’t work on flock!!!
onLoad : function() {
var feedButton = document.getElementById("feed-button");
if (feedButton) {
// add the listener for feedButton
document.addEventListener("DOMAttrModified", RichFeed.onAttrModified, false);
// triggers a modification only to test the listener
feedButton.setAttribute("feeds", "true");
// onAttrModified should receive the modification but this doesn't occur on Flock
var v = feedButton.getAttribute("feeds");
}
}
onAttrModified : function(event) {
if (event.target.id == "feed-button") {
// never called with Flock browser
}
}
So my decision is to stop the flock support on my bonzai extensions, I have no time to search workarounds to all flock bugs.
Who cares for my decision? Nobody I know
Amazon wish list
Try this
var feedButton = document.getElementById(“favoritesFeedButton”) ||
document.getElementById(“feed-button”);
Comment by LouCypher — July 6, 2007 @ 7:27 am |
Thanks for your hint
Yes now it works
Comment by dafi — July 6, 2007 @ 7:35 am |
That’s why “favoritesFeedButton” was mentioned first in
getElementByIdGlad it’s finally works
Comment by LouCypher — July 6, 2007 @ 8:06 am |