User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:126.96.36.199) Gecko/20070725 Firefox/188.8.131.52
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:184.108.40.206) Gecko/20070725 Firefox/220.127.116.11
If you use DOM to dynamically add an RSS link, it does not show up as the new source of the orange RSS icon on the top. This makes it so dynamic AJAX applications can not offer live RSS feeds of results that can be changed on the fly without page reloading.
Autodiscovery feeds off the DOMLinkAdded event which is
fired when a new link element is added to the DOM, either from the
original parse of the page or from later scripting, so you can create
a new link element with the appropriate attributes, add it to the
document, and have it added to the discovered feeds
Do we need a listener for the companion event,
DOMLinkRemoved, which would remove the previously discovered link?
Steps to Reproduce:
1. Add a link to a URL
3. Orange RSS icon still points to the old rss feed
Orange rss icon should point to the new results
This kind of interactive functionality is being used more and more as web 2.0 and AJAX are moving to the mainstream. I think that this is an important step in marrying AJAX with RSS and open the gates to a lot of new, exciting web applications.
Does anybody have any suggestions on how I could make this work?
bug 380639 seems related.
Yes, bug 380639 seems to have an attached code with a potential patch for this issue.
*** Bug 457409 has been marked as a duplicate of this bug. ***
There's no easy way to fix this without mutation event listeners, which are expensive perf-wise. We could alternatively just rebuild the menu each time it's opened (which would also fix bug 380639), but that might be too slow.
Well, and whether it's a menubutton or a button depends on the (current) state of the world, and we have a healthy dose of bugs on the way we currently don't show that, so to not block off fixing them the feed list would need to be rebuilt for the tooltip's popupshowing and for click, not just the menu's popupshowing.
Bleah, and it would still block half of showing, since the two things people want are tooltips that say "Subscribe to this page's feed" or "See a list of this page's feeds" and to have a dropmarker when there's more than one. But you might have multiple feeds onload, so we put a dropmarker on the icon, and then all but one is removed, so when you click the icon to see the menu, we grovel through the DOM and decide to remove the dropmarker and load a feed instead of showing the menu you expect.