I have a output logging div which will usual contain hundreds of entries over time added to incrementally. Would it be better to append new output via: -
myDiv.innerHTML += "Another logged message<br/>";
or to add a LI child element to the DIV via something like: -
var listItem = document.createElement("li");
listItem.innerHTML = rowData.replace(/\s+$/,'');
listItem._key = rowKey;
myDiv.appendChild(listItem);
I don't plan to need events or other user interaction with individual messages. Just display purposes.
Does it matter?