Fix unit tests by adding innerHTML/textContent support.