currently, jsMsg only takes HTML as String for the message content.
I suggest the following change:
< messageDiv.innerHTML = message;
if (typeof message == 'string') {
messageDiv.innerHTML = message;}
else if (typeof message == 'object') {while (messageDiv.hasChildNodes()) // Remove old content messageDiv.removeChild(messageDiv.firstChild); messageDiv.appendChild (message); // Append new content}
Version: 1.13.x
Severity: enhancement