Page MenuHomePhabricator

jsMsg should accept DOM objects as input
Closed, ResolvedPublic

Description

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

Details

Reference
bz14328

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:09 PM
bzimport set Reference to bz14328.
bzimport added a subscriber: Unknown Object (MLST).