When Mailpile adds a notification to the notification area, it accidentally adds three DOM nodes instead of one. You can see this happening by examining document.getElementById('notification-bubbles').childNodes while navigating between individual emails and the inbox.
Problem
When Mailpile adds a notification to the notification area, it accidentally adds three DOM nodes instead of one. You can see this happening by examining
document.getElementById('notification-bubbles').childNodes
while navigating between individual emails and the inbox.Explanation
When mailpile adds a notification to the notification area, it produces a document fragment using the following HTML template:
...and then uses jQuery to replace an existing notification or
prepend
it to the notifications area.Due to the newlines in the above template, jQuery inserts three nodes into the DOM:
Later on, when the notification finishes, it animates the notification sliding up and removes the div with the event ID from the DOM. However, this leaves two stray text nodes in the DOM.
Suggested Fixes
trim()
the template string before passing it to jQuery.The text was updated successfully, but these errors were encountered: