Could that be as simple as `incompatibilityMessage.textContent || incompatibilityMessage.innerHTML` ?