refs #912 - fix indentation + define textContent